Enhanced Rich Text field showing div and p tags
17,703
Simple answer is: In your display view add disable-output-escaping="yes"
to your XSL statement like so:
xsl:value-of select="@CMImplPlan" disable-output-escaping="yes"
This will remove character output escaping for HTML characters.
Author by
Admin
Updated on June 14, 2022Comments
-
Admin almost 2 years
I have a collect task in Sharepoint 2010 with a Enhanced Rich Text box. In the list it shows the p and div tags.
<div class="ExternalClass1458740DC98941C3A3589359A3017AAA"><p>Approved - Rev D</p></div>
This is the field where the text is coming from.
<td width="75%" class="ms-formbody" > <SharePoint:FormField runat="server" id="ff3{$Pos}" ControlMode="Edit" FieldName="DocCtlAdmin_x0020_Comment1234567" __designer:bind="{ddwrt:DataBind('u',concat('ff3',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)) , '@DocCtlAdmin_x0020_Comment1234567')}"/> <SharePoint:FieldDescription runat="server" id="ff3description{$Pos}" FieldName="DocCtlAdmin_x0020_Comment1234567" ControlMode="Edit"/> </td>
Any insight as to why or how to remove would be appreciated