We have $str = " hello";
What's the best way to get $newstr
equal to  hello
; and so on to be sure it is displayed on the page the same way using jQuery?
If you have to do it with JQuery
(directly from your JS) you can use .text()
/ .html()
functions:
$('<div/>').text(value).html();
$('<div/>').html(value).text();
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments