Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.
Date: 2011jul7 Language: perl Keywords: defang, sanitize 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