Re: tool to encode html entities
Am 2006-11-16 22:37:26, schrieb T: hi, I found I'd like to talk to myself recently. :-) $ echo 'sed s/ /nbsp;/g f1 f2' | perl -MHTML::Entities -pe 'encode_entities($_)' ^ Are you sure, you want to convert ALL SPACE to nbsp; ? sed quot;s/ /amp;nbsp;/gquot; lt; f1 gt; f2 Any tools other than Perl? PHP5 Thanks, Greetings and nice Day Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSM LinuxMichi 0033/6/6192519367100 Strasbourg/France IRC #Debian (irc.icq.com) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
tool to encode html entities
Hi Any tools can help me encode html entities? E.g. from sed s/ /nbsp;/g f1 f2 to sed quot;s/ /amp;nbsp;/gquot; lt; f1 gt; f2 ? thanks -- Tong (remove underscore(s) to reply) http://xpt.sourceforge.net/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: tool to encode html entities
On Thu, 16 Nov 2006 21:59:37 -0500, T wrote: Hi Any tools can help me encode html entities? E.g. from sed s/ /nbsp;/g f1 f2 to sed quot;s/ /amp;nbsp;/gquot; lt; f1 gt; f2 ? thanks hi, I found I'd like to talk to myself recently. :-) $ echo 'sed s/ /nbsp;/g f1 f2' | perl -MHTML::Entities -pe 'encode_entities($_)' sed quot;s/ /amp;nbsp;/gquot; lt; f1 gt; f2 Any tools other than Perl? thanks -- Tong (remove underscore(s) to reply) http://xpt.sourceforge.net/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]