Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • kentiler 76 posts 69 karma points
    Aug 26, 2015 @ 00:48
    kentiler
    0

    Convert HTML Escape Characters to text

    Hi,

    I'm using XSLT to pull data from a Google Calendar RSS Feed. The title has HTML escape characters, and I am having trouble getting the normal text to be displayed.

    Here is what is showing up:

    Aug 27, 2015  Teacher Inservice
    Aug 28, 2015  Teacher Inservice
    Aug 31, 2015  FBCS Parent's Night
    Sep 1, 2015  First day of school
    Sep 7, 2015  Labor Day
    Sep 10, 2015  High School Retreat
    

    I've tried this, but no luck:

    <xsl:value-of select="umbraco.library:StripHtml(atom:title)" />
    

    Any ideas?

    Thanks!

    --Kent

  • Frederik Raabye 72 posts 276 karma points MVP 2x c-trib
    Aug 26, 2015 @ 07:13
    Frederik Raabye
    0

    Haven't touched xslt for a long time but perhaps something like <xsl:output method="text"/> or disable-output-escaping="yes" can help you?

  • Christopher Pascual 25 posts 273 karma points
    Aug 26, 2015 @ 07:57
    Christopher Pascual
    100
    <xsl:value-of select="atom:title" disable-output-escaping="yes" />
    
  • kentiler 76 posts 69 karma points
    Aug 26, 2015 @ 15:28
    kentiler
    0

    Perfect! Thank you!

Please Sign in or register to post replies

Write your reply to:

Draft