www.icetips.com  Icetips Utilities Documentation 7/6/2014    

String Class:  RemoveHTML

Previous  Top  Next  


Prototype: (String pHTMLString),String

 

pHTMLStringString to remove HTML tags from

 

ReturnsString 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:

HTMLString

 



Direct link to this page: http://www.icetips.com/manuals/utilities/removehtml_string.htm