Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Perl Programming Question
#3
Here are some generic filters I used for form submissions. Strip out HTML & other non-text stuff:

$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
$value =~ s///g;
$value =~ s/<([^>]|\n)*>//g;
Reply


Messages In This Thread
Perl Programming Question - by The UnDoug - 04-09-2007, 09:04 PM
Re: Perl Programming Question - by The UnDoug - 04-09-2007, 09:05 PM
Re: Perl Programming Question - by Lux Interior - 04-09-2007, 11:41 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)