Displaying HTML in the Dataview Webpart (DVWP)
By peter.stilgoe
If you try & display rich html columns or any other columns that uses HTML in a DVWP it will display as the actual HTML as opposed to outputting it as HTML formatted text.
If you added your data using Sharepoint designer “Insert Selected Fields” you need view your DVWP code in SPD & search for:
and replace it with
Now your data in this column will display as you expected ie. formatted with the HTML code applied.
Note: In SPD 2010 you will need to convert your DVWP to XSLT, On the ribbon:
List View Tools –> Design –> Customize XSLT
More From pstilgoe
Turbo charge your sharepoint lists by using calculated columns to write HTML
By peter.stilgoe
By inluding html in your calculated column formulas you can turbo charge your lists in Sharepoint, see:
Using HTML in calculated columns
Adding traffic light system to Sharepoint lists>



July 1st, 2010
