Posted By

nicolaspar on 07/19/06


Tagged


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

meth
Leech
millisami
vali29
rinx


Php decodear html


 / Published in: PHP
 

  1. function decodeHTML( $string ) {
  2. $string = strtr( $string, array_flip(get_html_translation_table( HTML_ENTITIES ) ) );
  3. $string = preg_replace( "/&#([0-9]+);/me", "chr('\\1')", $string );
  4. return $string;
  5. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: acueir on July 16, 2007

where can i download?

Posted By: awing_chen on August 18, 2007

Php decodear html

Posted By: ach316 on August 12, 2009

i want to download. where i can?

You need to login to post a comment.