x First time here? Check out the FAQ

Learn from 350 other Umbracians at the annual Umbraco Conference - CodeGarden '13.
More than twenty high quality sessions, open spaces, hackathons and social events you'll remember. Not to be missed!
Less than 25 tickets left - get yours now!

HtmlEncode

    Pretty standard method, the same as you would use in day to day ASP.NET coding - Takes a string and HTML Encodes it

    <xsl:value-of select="umbraco.library:HtmlEncode(data [@alias = 'bodyText'])" />