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
Hej guys,
I have a small problem here,
I am calling this in product details razor macro I have for my product here...
@product.LongDescription()
What I am getting as a result is this (in the eventual frontend):
<p>Lorem Ipsum is simply dummy text...</p>
How do I get rid of html and style tags and just get a text from Product long descriotion?
I feel that I have to "disable-output-escaping" maybe, but than how? :-)
Regards,
Dmitrij
I think if you're working with razor all you have to do is to call the Html.Raw() method to convert the string in an HtmlString.
Then the markup should be handled as markup and not as plain text.
Hej David,
Yes, I did use Razor here... and it helped :-)
Thanks alot for help!
//Dmitrij
Thanks again, David, for helping out :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Product description showing up in raw HTML
Hej guys,
I have a small problem here,
I am calling this in product details razor macro I have for my product here...
What I am getting as a result is this (in the eventual frontend):
<p>Lorem Ipsum is simply dummy text...</p>
How do I get rid of html and style tags and just get a text from Product long descriotion?
I feel that I have to "disable-output-escaping" maybe, but than how? :-)
Regards,
Dmitrij
I think if you're working with razor all you have to do is to call the Html.Raw() method to convert the string in an HtmlString.
Then the markup should be handled as markup and not as plain text.
Hej David,
Yes, I did use Razor here... and it helped :-)
Thanks alot for help!
//Dmitrij
Thanks again, David, for helping out :)
is working on a reply...