Yes. No sense reinventing the wheel, especially incorrectly.
$string = "%3Cb%3Eyo%3C%2Fb%3E"; $string =~ s/+/ /sg; <---- You forgot this. $string =~ s/%([0-9A-Fa-f]{2})/chr(hex($1))/seg;
In reply to Re^3: html code cleanup via GET
by ikegami
in thread html code cleanup via GET
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |