Jump to content
UBot Underground

[library] HTML tag strip


Recommended Posts

Not quite sure a library of one sub is worthy of the title. It'll strip all of the HTML tags out of a string you feed it.

 

The regular expression could probably use some work (any thoughts?) - but it gets the basic job done provided you don't feed it very nasty html containing single quotes or lots of javascript.

 

There's an example script included which you should delete before including it in anything.

ulib_striptags.ubot

Link to post
Share on other sites
  • 7 months later...
  • 4 months later...
  • 7 months later...
  • 9 months later...
  • 8 months later...
  • 4 weeks later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...