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'">
<br/>
<xsl:choose>
<xsl:when test="MT/@N = 'gdesc'">
<span class="grey_11">
<xsl:value-of disable-output-escaping='yes' select="MT[@N='gdesc']/@V"/><b>...</b>
</span><xsl:text disable-output-escaping='yes'></td></xsl:text>
</xsl:when>
<xsl:otherwise>
<span class="grey_11">
<xsl:call-template name="reformat_keyword">
<xsl:with-param name="orig_string" select="S"/>
</xsl:call-template>
</span><xsl:text disable-output-escaping='yes'></td></xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
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.
Al Dugan
www.atomicpark.com