[eluser]Unknown[/eluser]
Hi
I am integrating a wysiwyg editor in CI and I've come across something odd.
The editor (jquery redactor) has a feature to resize images, so when I submit the content of the editor,it sends something like this
Code:
<p></p><p></p><p><p><img src="http://localhost:8888/croatia2/uploaded/hang4.jpg">/p></p><p></p><p></p>
but when I get the value with $data=$this->input->post(); the html is broken, loosing the style like this
Code:
<p></p><p></p><p><p><img src="http://localhost:8888/croatia2/uploaded/hang4.jpg"></p></p><p></p><p></p>
It turns out that I had global_xss_filtering enabled in the config file, and I have found that if I disable that, the html keeps the style.
I don't know if this should be reported as a bug or I am missing something