macaroni Posted July 30, 2003 Posted July 30, 2003 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 < and ">" is converted to > 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.
beverly Posted August 1, 2003 Posted August 1, 2003 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" />
macaroni Posted August 1, 2003 Author Posted August 1, 2003 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:
Recommended Posts
This topic is 8148 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 accountSign in
Already have an account? Sign in here.
Sign In Now