b:format.removehtml

<b:format.removehtml>...</b:format.removehtml>

Removes HTML from the content

Using this tag you can strip all or some HTML from the contents of the tag.

Attributes

allow

(optional)

Allowable tags that will not be removed from HTML.

Examples

Remove HTML

<b:format.removehtml>
	<h1>Heading</h1>
	<p>Some content text</p>
</b:format.removehtml>
HTML source output
	Heading
	Some content text

Remove HTML but allow some tags

This is the same as previous example but here we allow the <p> tag.

<b:format.removehtml allow="<p>">
	<h1>Heading</h1>
	<p>Some content text</p>
</b:format.removehtml>
HTML source output
	Heading
	<p>Some content text</p>