[eluser]Salvador P.[/eluser]
Hello
I've been trying to deal with this problem for a while, but I can't! hehehe
I've got a form with a textarea, this text area must contain html code, like
Code:
<div text-align: right;">
some text
<td 20px;">
<p Arial, Helvetica, sans-serif; font-size: 8px; line-height: 10px; color: #500; text-align:right;">
more text
....
At this point there is no problem, just a form with a text-area, where the user puts that code, ( the user knows what he or she is typing, won't type something incorrect )
When the form is submitted I get this values (using var_dump($this->input->post()); ) at the beginning of the function which gets the form data:
Code:
<div text-align: right;">
some text
<td padding: 20px;">
<p font-family: Arial, Helvetica, sans-serif; font-size: 8px; line-height: 10px; color: #500; text-align:right;">
more text
....
All the
style=" tags/words are gone!!
I don't know why this is happening, something is escaping that words/tags but are required because we are using that html input in other views so we need to get that html raw input.
I have tried several things:
- XSS filtering disabled and enabled and same results.
- Tried to modify system/core/input post function and showed the data before it processes it and showed the same results, style=" tags gone.
- Different browsers
- Other things I don't remember...
Somebody knows what is happening?
Thanks!
EDIT: When I submitted this post, happened exactly the same thing!! All style tags are gone!