I have to generate a php file from the content of a div, this is working. But characters like < and > are blocking the generation.
For example :
<div id="test">
<p> I want to have this in my php file <?php echo "tatata" ?> </p>
</div>
I'm using the function $("#test").html() to get the content before to send it to a php file using ajax.
If I do an alert of this, I get the correct data but when I open the php file generated, I only have :
<div id="test">
<p> I want to have this in my php file
I've tried to use < instead of < 
I dont know if the problem comes from jQuery or the php code I call with ajax.
But I'm sure the problem is due to the < and > characters, because when I remove them, it works correctly.
Thanks for your help !
 
     
    