• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Convert HTML Text to Plain Text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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





Best Regards,

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

  • Follow-Ups:
    • Re: Convert HTML Text to Plain Text
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Script Debugger 6 Officially Released
  • Next by Date: Re: Convert HTML Text to Plain Text
  • Previous by thread: Re: Script Debugger 6 Officially Released
  • Next by thread: Re: Convert HTML Text to Plain Text
  • Index(es):
    • Date
    • Thread