Wednesday, February 2, 2011

The way to Display Richtext box content with out HTML tags in Data View Webpart.

Hi,

If you are trying to display your list which has a Rich Text Box field in dataview webpart. It shows the content of that field with the html tags like
etc...

To avoid those tags and show the text in a regular style.

1) Open that page in Sharepoint Designer in Slit View.
2) Click the cell that has the rich text box content in the dataview webpart.
3) In the Code part it highlights an XSL tag.
4) In that tag add the parameter "Disable-Output-escaping" with its value as "Yes".

Done. Click on the design view. You will see the content with proper styling.

No comments:

Post a Comment