I have recently come across a problem where a custom list form i created using SharePoint designer was displaying the HTML directly instead of rendering it.
As shown above the HTML for the Assigned To column value is not being rendered.
To overcome this you just have to add a simple property to you XSLT.
Select the HTML that is displayed and go to the code view.
You will see the statement as
<xsl:value-of select="@Assigned TO"></xsl:value-of>
To this you have to add a parameter called display-output-escaping
<xsl:value-of select="@Assigned TO" display-output-escaping="yes"></xsl:value-of>
As you can see, this time the HTML is rendered properly.
As shown above the HTML for the Assigned To column value is not being rendered.
To overcome this you just have to add a simple property to you XSLT.
Select the HTML that is displayed and go to the code view.
You will see the statement as
<xsl:value-of select="@Assigned TO"></xsl:value-of>
To this you have to add a parameter called display-output-escaping
<xsl:value-of select="@Assigned TO" display-output-escaping="yes"></xsl:value-of>
As you can see, this time the HTML is rendered properly.
No comments:
Post a Comment