Browse - programming tips - perl remove htmlDate: 2011jul7 Language: perl Keywords: defang Q. How can I remove the HTML in a string? A. An easy way is to just remove everything inside angle brackets (and the brackets themselves) $str =~ s/\<[^\>]*\>//g; I'm sure this isn't perfect but its nice and easy.
Add a commentSign in to add a comment | Advertisements:
|