Hi.
I'm in a situation where I would like to strip certain HTML tags from the output of bodyText with XSLT. More precisely it's the header tags I dont want to show.
This is the compromise I could come up with.
<p class="description">
<span class="description">
<xsl:value-of select="umbraco.library:StripHtml(umbraco.library:TruncateString(bodyText,250,'...'))" />
</span>
</p>
An example could be something like this:
<h2>Header</h2><p>Paragraph text</p>
Which should be:
Paragraph text
By the way, I did find this thread, but I wonder if it can be done in an easier way?
http://our.umbraco.org/forum/developers/xslt/10272-Remove-attributes-from-html-tags-in-xslt
Thanks in advance!
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/26201-strip-certain-html-tags