[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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;/g&quot; &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/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)



Reply to: