Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > decoding html entities

Reply
Thread Tools

decoding html entities

 
 
Uwe Mayer
Guest
Posts: n/a
 
      01-05-2005
Hi,

I am parsing HTML contents and am searching for a function which translates
entities like:

>
"

etc. to plain text.

Is there already a function available for this?

Thanks
Uwe

 
Reply With Quote
 
 
 
 
A. Sinan Unur
Guest
Posts: n/a
 
      01-05-2005
Uwe Mayer <> wrote in
news:crh0u5$3ug$:

> Hi,
>
> I am parsing HTML contents and am searching for a function which
> translates entities like:
>
> &gt;
> "
>
> etc. to plain text.
>
> Is there already a function available for this?


Surprisingly enough, there is a module called HTML::Entities on CPAN
which you should have searched before posting here.



--
A. Sinan Unur
d
(remove '.invalid' and reverse each component for email address)

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
decoding numeric HTML entities Andreas Gohr Javascript 10 06-14-2005 08:58 PM
Easy way to remove HTML entities from an HTML document? Robert Oschler Python 8 07-31-2004 02:03 AM
HTML::Entities::encode() returning wrong(?) entities Jim Higson Perl Misc 3 07-25-2004 09:13 PM
RE: Easy way to remove HTML entities from an HTML document? Robert Brewer Python 0 07-25-2004 08:21 PM
Decoding HTML entities Anuj ASP General 0 07-24-2003 08:56 AM



Advertisments