Add-Ons
Details
HTML Strip
1.0.1
- Author:
- Paul Burdick
- Published:
- Jul 12, 2004
- Last Updated:
- Jul 22, 2009
- License:
- Freeware
- Categories:
- Plugins Text Formatting
Strips out HTML code from text, even if the tags are converted into HTML entities
Example Usage
{exp:html_strip convert='y'}
&lt;p&gt;text <strong>you</strong> want processed&lt;/p&gt;
{/exp:html_strip}
Notes
Strip out all HTML from a piece of text{exp:html_strip}
text <strong>you</strong> want processed
{/exp:html_strip}
// Returns 'text you want processed'
----------------------------------------------
PARAMETERS
- convert - Lets you specify whether to convert the HTML entities < and > back to the < and > characters before stripping out the HTML.
- convert_back - Lets you specify whether to convert < and > back to the entities.
- convert_back="all" will convert all < and > characters to entities.
- convert_back="original" will convert the < and >'s that were originally < and > back to entities
- convert_back="none" will convert none of the < and >'s back to entities
- keep - Lets you specify what HTML tags to keep.
--------------------------
EXAMPLE:
{exp:html_strip convert="y" convert_back="all" keep="strong,em"}
<p>text <strong>you</strong> want processed</p>
{/exp:html_strip}
// Returns 'text <strong>you</strong> want processed'





