Archive: October 2009

Stripping HTML tags from content with PHP

Friday 23rd October 2009, 06:46 PM
It may sometimes be useful to remove the html tags from a portion of text, for example when you want to display a snippet of text in a paragraph, or add it to an xml feed with breaking it. There are a couple of ways to do this. The most obvious, and blanket solution, is to use the strip_tags() function in php.
Read more...