strip_tags

Description

Strips tags from an HTML string.

 string strip_tags( string code )

Removes all HTML tags from the given string. Sometimes useful when simplifying messy RSS feeds.

For converting larger objects or entire messages to text-only, see also the text() function.

Example

 {strip_tags('<p>bit of <b>HTML</b></p>')} ---> bit of HTML
Top