Ver Mensaje Individual
  #8 (permalink)  
Antiguo 02/11/2010, 18:05
Avatar de gachon
gachon
 
Fecha de Ingreso: septiembre-2004
Ubicación: En Google
Mensajes: 462
Antigüedad: 19 años, 8 meses
Puntos: 3
Respuesta: traer datos de mysql pero luego mostrarlo con conversion html

por ahora lo he conseguido con una funcion que venia en la pagina php.net, venia exactamente en una exemplo de la funcion que puso Nano.
Código PHP:
Ver original
  1. function unhtmlentities($string)
  2. {
  3.     // replace numeric entities
  4.     $string = preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $string);
  5.     $string = preg_replace('~&#([0-9]+);~e', 'chr("\\1")', $string);
  6.     // replace literal entities
  7.     $trans_tbl = get_html_translation_table(HTML_ENTITIES);
  8.     $trans_tbl = array_flip($trans_tbl);
  9.     return strtr($string, $trans_tbl);
  10. }
y se llama asin a la funcion
Código PHP:
Ver original
  1. <?php echo unhtmlentities($etiquetas);  ?>