Si el mensaje está escrito en texto plano bien, pero si el mensaje está escrito en html como lo descodifico a texto plano?
Muchas gracias
Cita:
Iniciado por neodani
Si el mensaje está escrito en texto plano bien, pero si el mensaje está escrito en html como lo descodifico a texto plano?
Muchas gracias
He probado
echo htmlentities($mensaje);
Pero me escribe todo el mensaje en texto plano con las etiquetas html...
Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://app.ecentry.com/3/c/?62324.142487.223.1242.0.ab2d05d"> <html xmlns="http://app.ecentry.com/3/c/?62324.142487.223.1243.0.c63987a"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Pagina web</title> </head> <body marginheight="0" marginwidth="0" bgcolor="#00253C"> <div style="background-color:#00253C"> <p align="center" style="font:normal 11px Arial, Helvetica, sans-serif; color: #CCCCCC; margin:0px">Si no puede ver correctamente este e–mail haga click <a href="http://app.ecentry.com/3/c/?62324.142487.223.1161.0.3fec68d" target="_blank" style="color:#CCCCCC">
.
.
.
¿No hay ninguna función para eliminar estas etiquetas?
Muchas gracias