2015-02-27

Strip HTML tags using regex

While for proper Markup Language parsing one should actually use an XML parser, sometimes you just want to strip all the markup using regex:
s/<\/?[^>]+>//

No comments:

Post a Comment