function debug(){
var vcadena = JSON.stringify($("#ncuerpo").val(), null, 2);
$.ajax({
type: "POST",
url: "/administrar/noticias/serverdebug",
data: ({cadena:vcadena})
});
}public function serverdebug(){
$datos = json_decode($this->input->post('cadena'));
echo $datos;
}<p><span style="color:#CCCCCC">Im a colored string</span></p>
<p><span>Im a colored string</span></p>

Re: Missing span style tag from ajax jQuery to PHP
Re: Missing span style tag from ajax jQuery to PHP
Codeigniter uses
$this->input->post('postVariable')instead native PHP's methodIf i print $this->input->post('postVariable') before json_decode i can see the string:
as u can see, style tag isnt there
Re: Missing span style tag from ajax jQuery to PHP
$.ajax({ type: "POST", url: "/administrar/noticias/serverdebug", data: ({cadena:'"<p><span style=\\"color:#CCCCCC\\">Im a colored string</span></p>"'}) });Does it work ok?
Re: Missing span style tag from ajax jQuery to PHP
No it doesn't, but i found the problem.
Just setting to FALSE solve the problem.
Thanks for fast replies
Re: Missing span style tag from ajax jQuery to PHP
Just to be absolutely clear.:

$config['global_xss_filtering'] = FALSE;
and it´ did work alright ?
Tks
...... Aaminah
That's right!
That's right!