Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers

up vote 5 down vote accepted

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.

share|improve this answer
add comment

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"
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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