How to pass decoded HTML strings to JS?
hi i have created a php file for users to comment in my website this is the line
$comment = $get_row[2];
$jsonarray = array('User' => $get_row[1],'Comments' => $comment, 'Post' => $get_row[3],'Date' => $get_row[4]开发者_开发技巧,'Like' => $get_row[5],'Dislike'=>$get_row[6],'islike' => $is_like,'abuse' => $get_row[7]);
but in comment box when i enter " " " it showing like
"""
;
is there any function in php to decode this string and it show as a original user entered string like " " "
http://www.php.net/manual/en/function.htmlspecialchars-decode.php
<?
$x = '"with quotes" "';
print htmlspecialchars_decode($x);
?>
> php test.php
"with quotes" "
精彩评论