I need to unescape XML characters from inside of XML nodes with the help of only XSLT transformations. I have <text><>and other possible characters</text>
and need to get it as valid formatted HTML when I place it inside of the body tag.
<xsl:template match="text">
<body>
<xsl:value-of select="." disable-output-escaping="yes" />
</body>
</xsl:template>
Note that the output is not guaranteed to be well-formed XML anymore.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With