decoding html entities

Discussion in 'Perl Misc' started by Uwe Mayer, Jan 5, 2005.

  1. Uwe Mayer

    Uwe Mayer Guest

    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
     
    Uwe Mayer, Jan 5, 2005
    #1
    1. Advertising

  2. Uwe Mayer <> wrote in
    news:crh0u5$3ug$-karlsruhe.de:

    > 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)
     
    A. Sinan Unur, Jan 5, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Robert Oschler
    Replies:
    8
    Views:
    748
    Christopher T King
    Jul 31, 2004
  2. Robert Brewer
    Replies:
    0
    Views:
    520
    Robert Brewer
    Jul 25, 2004
  3. Anuj

    Decoding HTML entities

    Anuj, Jul 24, 2003, in forum: ASP General
    Replies:
    0
    Views:
    120
  4. Jim Higson
    Replies:
    3
    Views:
    227
    Eric Amick
    Jul 25, 2004
  5. Andreas Gohr

    decoding numeric HTML entities

    Andreas Gohr, Jun 10, 2005, in forum: Javascript
    Replies:
    10
    Views:
    297
Loading...

Share This Page