locked
HTML Tags on Body field of Blog site RRS feed

  • Question

  •  Here;s the scenario, i created a WSS blog site, in Post.aspx, It used to display the title and body of the blog site. but on the body some html tags are also displayed. How can i prevent it from displaying. Im using an enhanced rich text box for my Body field
    cal_bonjovi
    • Changed type Wayne Fan Wednesday, December 14, 2011 1:32 AM question, not discussion
    Tuesday, December 13, 2011 7:30 AM

Answers

  • Hi cal_bonjovi,

    Can you tell what a web part you are using to display Title and Body fields, is it a Custom List Display Form Web Part or anything else?

    If you are using a custom list form or get text using XSLT, following code you might use to display Body field.

    <xsl:value-of select=”@Body” />

    Then please change it to <xsl:value-of select=”@Body” disable-output-escaping=”yes” />

    Or right click the Body field > Format as > Select Rich Text (or Label) type directly.

    Thanks & Regards,
    Emir Liu
    TechNet Subscriber Support in forum
    If you have any feedback on our support, please contact
     
    tnmff@microsoft.com.


    Emir Liu

    TechNet Community Support

    • Marked as answer by Emir Liu Wednesday, December 21, 2011 6:21 AM
    Wednesday, December 14, 2011 6:06 AM