I attempt to show the Body of Announcement at Content Query Web Part.
Case 1
I get the following result:
The 1st line shows the Title as normal.
The 2nd line shows:
<div class=ExternalClass90BF9EBAACDA4DF59EBCBD401F04EBBF><div>Hello!</div></div>
It should be 'Hello!' only without the html code.
I tried the following at the webpart file:
<property name="CommonViewFields" type="string">Body, Note</property> or
<property name="CommonViewFields" type="string">Body, RichHTML</property> or
<property name="CommonViewFields" type="string">Body, RichText</property>.
Certainly, I have the following at the ItemStyle file:
<div class="description">
<xsl:value-of select="@Body" />.
Case 2
I get the following result:
The 1st line shows the Title as normal.
The 2nd line shows nothing of the Announcement Body.
I tried the following at the webpart file:
<property name="CommonViewFields" type="string">Body_x0020_content, RichHTML</property> or
<property name="CommonViewFields" type="string">Body_x0020_content, Note</property> or
<property name="CommonViewFields" type="string">Body_x0020_content, RichText</property>
with the ItemStyle file:
<div class="description">
<xsl:value-of select="@Body_x0020_content" />.
and
<property name="CommonViewFields" type="string">Body_x005F_x0020_content, RichHTML</property> or
<property name="CommonViewFields" type="string">Body_x005F_x0020_content, Note</property> or
<property name="CommonViewFields" type="string">Body_x005F_x0020_content, RichText</property>
with the ItemStyle file:
<div class="description">
<xsl:value-of select="@Body_x005F_x0020_content" />