Jump to content

HTML to remain after XSL Transformation


macaroni

This topic is 7597 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I export a set of record into an html file using XSLT and there are occassions when the user enters html tags in the field such as creating a link <a href="#">link</a>. However after the export using the

XSLT file, the html tags that they placed in the field are exported as actual text as oppossed to html tags as they should be.

I looked at the source code of the generated html file and it seems that the "<" is converted to &lt; and ">" is converted to &gt; Is there any ways that the users can place some html tags in the fields yet after the export to html still retain their tags as actual html and not convert the tags to special characters.

Thanks.

Link to comment
Share on other sites

You'll have to check, but see what you get if you use either of these:

<xsl:value-of select="myfield" disable-output-escaping="yes" />

or

<xsl:copy-of select="myfield" />

Link to comment
Share on other sites

This topic is 7597 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.