How to remove HTML tags using VBscript?

How to remove HTML tags from a string using VBscript? Is any feature available?

+4
source share
1 answer

If the line contains only simple basic HTML, and you are sure that the text will never contain < or > , you can simply skip the text and use InStr to find all < and > and use Mid to save all the text that is not between them .

Otherwise, this CodeProject article contains a function that should do it better in the section called Fourth Option - Another VBScript Attempt , However, the article does not mention any license information that might be a problem for you.

+5
source

Source: https://habr.com/ru/post/1380136/


All Articles