in reply to Re^2: Escaping special characters
in thread Escaping special characters
As for the security of your website, I think I will leave that to some professionals ;) Update: Changed link, thanks soonixuse strict; use warnings; while (<DATA>){ print "Perl string - ", my $perl_string = $_ =~ s/!//rg if $_ !~ /<.*? +>/g; print "HTML string - ", my $html_string = $_ =~ s/!//rg if $_ =~ /<.*? +>/g; } __DATA__ 123!!!!!! <p>123!!!!!</p>
|
---|