I have a form in codeigniter to save some html content to the database. Example this HTML:
<div style="width:400px">
<div style="background-color:yellow">
Header
</div>
</div>
When i save it i get the html tags broken. Even if i "print_r" the $_POST on submitting the form i see the html tags broken. Here is what i get:
<div
<div
Header
</div>
</div>
But the same form without codeigniter (simple code) works normal and shows proper html.
Is this normal in CI? How can this be solved?