Hey,
Apologies if this has been answered before. I want to display the first 300 characters of a rich text editor and have done the following (which works fine).
<xsl:value-of select="umbraco.library:TruncateString(contents,300,'...')" disable-output-escaping="yes" />
What I would like to do after this is to strip out all images, styling and links. Is there any way I can grab all the outputted text and the strip out all code so it’s just plain text?
The reason I put the disable-output-escaping on in the first place is so I don’t get any of the html code being pulled in, but it throws in pictures and links and looks unsightly.
Any help would be much appreciated!
Thanks,
Tom
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/67399-xslt-render-html