Hi,
Does anyone know of a way to strip out everything from a passed in variable, excluding valid text, and <i><u><b> etc tags?
my $in = $_[0];
$in =~ s|</?.*>||sig;
}
..but that will filter out all HTML tags, which I don't want
TIA
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Does anyone know of a way to strip out everything from a passed in variable, excluding valid text, and <i><u><b> etc tags?
Code:
sub cleanhtml { my $in = $_[0];
$in =~ s|</?.*>||sig;
}
..but that will filter out all HTML tags, which I don't want

TIA
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!