¿En CodeIgniter cómo puedo agregar el html_entity_decode a un array luego de obtener la data de este desde base de datos?
¡
Agregar html_entity_decode
Iniciado por
Nicolas
, oct 07 2014 01:18
#1 AUTOR PREGUNTA
Preguntas Similares
Esto también te interesa!
#2
Publicado 07 octubre 2014 - 03:59
Implementa el siguiente código en tu aplicación, modificándolo y adaptándolo a tus necesidades:
function fetch($cond)
{
$query = $this->db->query("SELECT * FROM `paginas` WHERE `cond` = '$cond'");
for($i=0; $i<$query->num_rows(); $i++)
{
$html_decoded[$i]['id'] = html_entity_decode($query->id);
$html_decoded[$i]['content'] = html_entity_decode($query->content);
}
return $html_decoded;
}