convert pure html to text

Discussion in 'PHP' started by srdva59, Sep 7, 2009.

  1. #1
    Hello Everyone,

    I have been searching tirelessly and cannot find a way to convert this
    text into
    html


    text=
    <p>LONDRES (Reuters) - Cientistas descobriram três importantes elos genéticos ligados ao mal de Alzheimer que afetam até 20% dos pacientes da doença e disseram neste domingo que foi a mais importante revelação na área nos últimos 15 anos
    ...</p><p><a href="http://oglobo.globo.com/ciencia/mat...alzheimer-767500227.asp">Leia mais</a></p>
    <p><a href="https://seguro.oglobo.com.br/assinatura/">Assine O GLOBO</a> e receba todo o conteúdo do jornal na sua casa</p>

    i need do this using php the text is removed form a xml file them i need
    process the text to a normal text
    thanks for your help
    :)
     
    srdva59, Sep 7, 2009 IP
  2. ahsan11223

    ahsan11223 Active Member

    Messages:
    725
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    73
    #2
    you must copy and past it in wordpade not in notepad..thats where your mistake..

    i hope you once do it and youwill see it working
     
    ahsan11223, Sep 7, 2009 IP
  3. prasanthmj

    prasanthmj Member

    Messages:
    62
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    45
    #3
    Use the html_entity_decode function to decode. It does right the reverse of htmlentities().
     
    prasanthmj, Sep 7, 2009 IP
  4. srdva59

    srdva59 Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    hi thanks a lot for you help
     
    srdva59, Sep 30, 2009 IP