Sign in to follow this  
Followers 0
gear

If someone has the script to transfer HTML file to TXT file

2 posts in this topic

If someone has the script to transfer HTML file to TXT file. I believe Autoit can do it well.

Gear

Share this post


Link to post
Share on other sites



Here's my html to text conversion UDF:

Func _Html2Text($sHTML)
      local $oHTML = ObjCreate("HTMLFILE")
      $oHTML.Open()
      $oHTML.Write($sHTML)
      return $oHTML.body.innerText
EndFunc
  
$html = fileread("test.htm")
$txt = _Html2Text($html)
ConsoleWrite($txt & @crlf)

[font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0