Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
Could be that you need to add @Html.Raw(THE THING YOU'RE OUTPUTTING).
Thanks Anthony.
Changing : <span class="entryContent">@n.GetProperty("uBlogsyContentBody").Value</span>
to ; <span class="entryContent">@Html.Raw(@n.GetProperty("uBlogsyContentBody").Value)</span>
Worked wonders!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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?
Could be that you need to add @Html.Raw(THE THING YOU'RE OUTPUTTING).
Thanks Anthony.
Changing : <span class="entryContent">@n.GetProperty("uBlogsyContentBody").Value</span>
to ; <span class="entryContent">@Html.Raw(@n.GetProperty("uBlogsyContentBody").Value)</span>
Worked wonders!
is working on a reply...