1

I have a form being displayed in a page and data is getting stored in an SP List. When a user enters an apostrophe in a field, the same list item displays the apostrophe as ''' in the web part.

How should I get rid of it?

2 Answers 2

6

On your DVWP field, do you have disable-output-escaping="yes" added to the xslt reference for that item? This will display apostrophe's and ampersands properly.

6

It's rendering as HTML character code. Check out this article:

http://www.petestilgoe.com/2010/07/displaying-html-in-the-dataview-webpart-dvwp/

The article suggests changing your XSL to:

xsl:value-of disable-output-escaping="yes" select="@MyHTMLFormattedColumn"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.