Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

HTML to remain after XSL Transformation


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

Recommended Posts

Posted

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.

Posted

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" />

Posted

Thanks for the response beverly. The value-of and disable-output-escaping="yes" appears to do the trick with one final glitch, the quotes are now changed to some character:

This topic is 7783 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.