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'd like to strip the paragraph tag from Rich Text Editor text so my text renders as
<span class="more">Text</span>
at the minute it looks like:
<span class="more"><p>Text</p></span>
My code is in a partial view and looks like:
<div class="comment more">@item.GetProperty("readMore").Value</div>
How would I do this.
Thanks in advance
If you don't want paragraph tags why use a Rich Text Editor ? Isn't it better to use a text box or text area in this case ?
Dave
Thanks Dave. I still need to have line breaks and links etc in the text. The text area and text box remove the line breaks.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Strip paragraph tag from Rich Text Editor
Hi,
I'd like to strip the paragraph tag from Rich Text Editor text so my text renders as
<span class="more">Text</span>
at the minute it looks like:
<span class="more"><p>Text</p></span>
My code is in a partial view and looks like:
<div class="comment more">@item.GetProperty("readMore").Value</div>
How would I do this.
Thanks in advance
If you don't want paragraph tags why use a Rich Text Editor ? Isn't it better to use a text box or text area in this case ?
Dave
Thanks Dave. I still need to have line breaks and links etc in the text. The text area and text box remove the line breaks.
is working on a reply...