Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: parse HTM HTML remove delete tag tags text file
#DefineFunction RemoveHTML( htmlfile ) ;Remove HTML from file ;Open browser to handle removal of HTML easily browser = ObjectCreate("InternetExplorer.Application") browser.visible = @false; @TRUE browser.navigate ( htmlfile ) ;to access a local file While browser.readystate != 4 TimeDelay(0.5) EndWhile browserpage = browser.Document.Body.CreateTextRange text = browserpage.Text ;Close browser session browser.quit browser = 0 Return text #EndFunction htmlfile = "C:\temp\myhtmlfile.htm" textonly = RemoveHTML( htmlfile ) Message( "Parsed HTML", textonly )
Article ID: W17020
File Created: 2007:07:03:14:27:38
Last Updated: 2007:07:03:14:27:38