Removing tags from text

Results 1 to 2 of 2

Thread: Removing tags from text

  1. #1
    Join Date
    Dec 1969

    Default Removing tags from text

    I have a string with MS Word &#060;SPAN&#062; tags and some other weird tags. How do I search the sring for "&#060;SPAN" and remove from this point until I find "&#062;", the closing part? I will need to loop until there are no more &#060;SPAN&#062; tags.<BR><BR>I suppose Javascript is the way to go?

  2. #2
    Join Date
    Dec 1969

    Default RE: Removing tags from text

    JavaScript?<BR><BR>Your BEST bet is to use regular expressions, which javascript will be able to help you with. You CAN use regular expressions in server-side VBScript (ASP 3.0), but they&#039;re slow compared to JavaScript&#039;s versions.<BR><BR>Have a quick search on Google for regular expressions in javascript - I&#039;m sure you&#039;ll find some stuff on it.<BR><BR>Craig.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts