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 all
I want the @bodyText all about html tags to using Exslt.ExsltRegularExpressions:replace
to replace all html tags
e.g. <p> asdfa<strong>sdfa</strong>sdf</p> <ul><li>abcd</li><li>1234></li><ul>
to: asdfasdfasdfabcd1234
how shoutld I to order regexp?
and how about Exslt.ExsltRegularExpressions:replace third column flags?
thx alot :)
Regards,
Bambe :)
Hi Bambe
Is there any specific reason why you want to do it with replace?
I think the StripHtml extension from the umbraco.library is just what you need in this case - have a look at it here http://our.umbraco.org/wiki/reference/umbracolibrary/striphtml
It does what it says...strips the HTML leaving you with the text only :-)
Hope this helps.
/Jan
Hi Jan,
That's what I need, thx a lot :)
Good to hear. Sometimes it's hard to figure out the most simple solutions :-)
Have a nice weekend.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
using regular expression to search any html tag and replace
Hi all
I want the @bodyText all about html tags to using Exslt.ExsltRegularExpressions:replace
to replace all html tags
e.g. <p> asdfa<strong>sdfa</strong>sdf</p> <ul><li>abcd</li><li>1234></li><ul>
to: asdfasdfasdfabcd1234
how shoutld I to order regexp?
and how about Exslt.ExsltRegularExpressions:replace third column flags?
thx alot :)
Regards,
Bambe :)
Hi Bambe
Is there any specific reason why you want to do it with replace?
I think the StripHtml extension from the umbraco.library is just what you need in this case - have a look at it here http://our.umbraco.org/wiki/reference/umbracolibrary/striphtml
It does what it says...strips the HTML leaving you with the text only :-)
Hope this helps.
/Jan
Hi Jan,
That's what I need, thx a lot :)
Regards,
Bambe :)
Hi Bambe
Good to hear. Sometimes it's hard to figure out the most simple solutions :-)
Have a nice weekend.
/Jan
is working on a reply...