I haven an output control (span) that's mapped to an element in the factbase which contains html. Unfortunately the content is html encoded before it gets displayed. How can I prevent that from occurring?
Is there a better way to output html that's contained in the factbase?
Is there a better way to output html that's contained in the factbase?
RE: treating content of factbase as html
The output control is designed to show you the string as is, so if the string contains HTML formatting, you will see those HTML elements on the screen.
If instead you want to display the rendered HTML then you need to use a custom field.
Inside the custom field, enter the following statement:
<xsl:value-of disable-output-escaping="yes" select="/mvc:eForm/mvc :D ata/mvc:formData/mvc:html_string" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
You need to change the value of the select attribute to be the page display binding for your existing output field.
I hope this helps.
Regards,
Gerard.