1
html 텍스트 입력에 어떻게 추가합니까? 그것은이 (가) HTMLhtml을 입력 할 수없는 문자를 추가하십시오.
var addMe = '<input type="text" value="' + s + '" />';
를이 어떻게 보이는지되어 파괴되지 않도록
var s = '>>>>>>> """""""""""""';
어떻게 이러한 문자를 탈출 할 때 그 jquery 동적
<input type="text" ??="" value=""/>
보기 [JavaScript의 당량은 htmlspecialchars (http://stackoverflow.com/questions/1787322/htmlspecialchars-equivalent-in-javascript)도 – fcalderan
, http://stackoverflow.com/questions/1219860/javascript-jquery- HTML 인코딩 – jorgebg