Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Pat 56 posts 147 karma points
    Jan 25, 2012 @ 13:46
    Pat
    0

    Style tags showing in content of post on homepage

    Hi,

     

    I have pulled through the recent posts to the hompage and they're styled, only thing is the style tags are showing up as well on the homepage, e.g. <p><style color> etc.

    Can't seem to shift them?

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Jan 25, 2012 @ 19:20
    Anthony Dang
    1

    Could be that you need to add @Html.Raw(THE THING YOU'RE OUTPUTTING).

     

     

  • Pat 56 posts 147 karma points
    Jan 25, 2012 @ 20:54
    Pat
    1

    Thanks Anthony.

    Changing : <span class="entryContent">@n.GetProperty("uBlogsyContentBody").Value</span>

    to ; <span class="entryContent">@Html.Raw(@n.GetProperty("uBlogsyContentBody").Value)</span>

    Worked wonders!

Please Sign in or register to post replies

Write your reply to:

Draft