Hi all, I current have in place some XSL to strip html tags out. It had worked untill stuff started comming in with internal styling. I tried to introduce something to strip out the <style> tags, but it doesn't work. Here is where I have gotten so far:
<xsl:if test="contains($value,'<style>')">
<xsl:value-of select="substring-before($value,'<style>')" disable-output-escaping="yes"/>
<xsl:choose>
<xsl:when test="contains(substring-after($value,'<style>'),'</style>')">
<xsl:call-template name="strip_HTML">
<xsl:with-param name="value">
<xsl:value-of select="substring-after($value,'</style>')"/>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
I am new to xsl so any advice would be greatly appreciated! Thanks!