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
I have a rte property with <p> tags with nested <a> tags. Now I'm trying to remove the <p> tags from that property.
If I use:
the <a> tag is removed and the <p> tags are still rendered as expected.
But if I use:
the <p> and the <a> tags are removed? Shouldn't this only remove the <p> tag? Or will this simply remove the <p> tag and all the html within the paragraph?
What property editor are you using?
Sorry... Rich text editor
Try to use RemoveParagraphTags method:
When trying out "RemoveParagraphTags" an error is thrown due to "library does not contain a definition for RemoveParagraphTags".
I'm trying to display the rich text editor data inside a partial view with razor.
/ Regards David
Not exactly clean but you could get away with a couple of simple replacements here:
item.propertyAlias.Replace("<p>", "").Replace("</p>", "")
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted