tags:

views:

16

answers:

1

i am using ck editor to compose my mail , to send mails to my user i am using the libmail class. my issue is if i echo the posted data from the ckeditor eg: echo $message = $_POST['editor1'];
output : " < data > " but if i send the message using the libmail the mail sended like this

<p>
    &quot;&nbsp; &lt; data &gt;&nbsp; &quot;</p>
<br />

i already tried this combination:

1 . $message = strip_tags($message); 2 . $message = htmlentities($message,ENT_NOQUOTES,'UTF-8'); 3 . $message = htmlspecialchars(stripslashes(strip_tags($message))); Still i could not able to solve this issue any body kindly give your suggestion. thanks in advance

A: 

http://www.php.net/manual/en/function.html-entity-decode.php or http://php.net/manual/en/function.htmlspecialchars-decode.php

Phil Brown
yes i already mention in my post, i tried these string function 1 . $message = strip_tags($message); 2 . $message = htmlentities($message,ENT_NOQUOTES,'UTF-8'); 3 . $message = htmlspecialchars(stripslashes(strip_tags($message))); . still the outputlooks like same
Meena
No, you tried the **encoding** functions. What you need is the **decoding** ones.
Phil Brown
thank you i forgot to html_entity_decode . now its working
Meena