This is my code which displays the value of the meta tag "gdesc" when it is available (Google Mini search results.) The value of "gdesc" is taken from a database and normally a common value would just be 255 characters or less of text such as "Since the debut of The Legend of Zelda in 1987, all of Links games have been the stuff of legends universally appealing adventures that emerged as beloved triumphs of gameplay, presentation, innovation, graphics and fun. In the ninth entry in the series" but occasionally these brief descriptions contain html elements so the values look like this "<b>FlowCharts & More</b> offers all the tools you need to quickly and easily create professional flow charts#44 organizational charts and business diagrams in minutes.<b>All the Tools You Need</b>A well-designed chart or diagram readily commu"
<xsl:if test="$show_res_snippet != '0'">
<xsl:when test="MT/@N = 'gdesc'">
<xsl:value-of disable-output-escaping='yes' select="MT[@N='gdesc']/@V"/><b>...</b>
<xsl:with-param name="orig_string" select="S"/>
This xml code works fine except when the meta tag values contain html elements... in which case it stops displaying the description as soon as it hits any html elements... so I thought by creating a variable that took out the html elements before displaying them my problems would be fixed, but I can't figure out how to strip out the html formatting.
Thank You for you help.