Convert HTML Text to Plain Text
Convert HTML Text to Plain Text
- Subject: Convert HTML Text to Plain Text
- From: Jim Underwood <email@hidden>
- Date: Fri, 17 Jun 2016 01:12:01 +0000
- Thread-topic: Convert HTML Text to Plain Text
I'm looking for a faster, better method of converting HTML text to plain text.
I'm hoping ASObjC can come to the rescue. 😄
I have an Evernote script that might process thousands of Notes, and for each Note I need the plain text.
Any ideas/suggestions?
I'm using this:
on getPlainText(pHTMLStr)
local plainText
set plainText to
do shell script
"echo " & quoted form of
pHTMLStr &
space &
"| textutil -format html -convert txt -stdin -stdout"
return
plainText
end getPlainText
Jim Underwood
aka JMichaelTX
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden