Re: High performance way to encode HTML entities
Re: High performance way to encode HTML entities
- Subject: Re: High performance way to encode HTML entities
- From: "Mark J. Reed" <email@hidden>
- Date: Sat, 21 Oct 2006 08:50:02 -0400
I don't know if you were dreaming or not, but if you do wind up using
a do shell script solution, it looks like HTML::Entities is part of
the system perl install, so this should work:
set lf to ASCII character 10
set theText to "¡Hola!"
(do shell script "/usr/bin/perl -Mencoding=utf-8 -MHTML::Entities -lne
'chomp; print encode_entities($_)' <<EOF" & lf & theText & lf & "EOF")
--> "¡Hola!"
--
Mark J. Reed <email@hidden>
_______________________________________________
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/mailman//archives/applescript-users
This email sent to email@hidden