|
Previous Top Next |
Prototype: | (String pHTMLString),String |
pHTMLString | String to remove HTML tags from |
Returns | String that has been cleared of HTML tags |
This method will remove all HTML tags from the string that is passed in. This is very convenient if you need to scrape just the text off of a web page that you have loaded from file or from the web. Everything that is inside < ... > tags is removed along with the "<" and ">" characters.
Example:
ITS ITStringClass
S String(4000)
Code
S = '<html><body>This is a test web page</body></html'
S = ITS.RemoveHTML(S)
Message('Stripped HTML = ' & S)
S now contains "This is a test web page"
See also: