decoding html in java

Discussion in 'Java' started by IgorD, Jan 20, 2006.

  1. IgorD

    IgorD Guest

    I have a regular html document that encodes certain characters. For
    example a quote " is represented as " and a greater sing > is >
    and so on.

    I am looking for a java API to automatically decode this back. This
    seems like something that should be outthere but so far I could not
    findd it anywhere. I would appreaciate if you could advise me on where
    to find an HTML decoder to do that. Thanks
     
    IgorD, Jan 20, 2006
    #1
    1. Advertising

  2. IgorD

    Martin Guest

    Did you look at java.util.regex.Pattern and java.util.regex.Matcher?
     
    Martin, Jan 20, 2006
    #2
    1. Advertising

  3. IgorD

    Roedy Green Guest

    On 20 Jan 2006 07:16:15 -0800, "IgorD" <> wrote,
    quoted or indirectly quoted someone who said :

    >I am looking for a java API to automatically decode this back


    see http://mindprod.com/products1.html#ENTITIES

    it will take entities out or put them back. It will also strip tags
    leaving your raw text. Putting them back is more problematic. :)
    --
    Canadian Mind Products, Roedy Green.
    http://mindprod.com Java custom programming, consulting and coaching.
     
    Roedy Green, Jan 20, 2006
    #3
    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. rabby
    Replies:
    2
    Views:
    440
    gene tani
    Dec 20, 2005
  2. Uriah Piddle

    HTML Decoding

    Uriah Piddle, Jan 7, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    355
    Uriah Piddle
    Jan 8, 2007
  3. Replies:
    5
    Views:
    2,380
  4. Anuj

    Decoding HTML entities

    Anuj, Jul 24, 2003, in forum: ASP General
    Replies:
    0
    Views:
    127
  5. Morgan

    Adventures in html decoding.

    Morgan, Sep 12, 2005, in forum: Ruby
    Replies:
    14
    Views:
    254
    Martin DeMello
    Sep 17, 2005
Loading...

Share This Page