diff options
Diffstat (limited to 'view/head.tpl')
-rwxr-xr-x | view/head.tpl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/view/head.tpl b/view/head.tpl index 70d830faa..2a1837088 100755 --- a/view/head.tpl +++ b/view/head.tpl @@ -55,7 +55,12 @@ $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty"); openMenu("comment-edit-submit-wrapper-" + id); } - $("#comment-edit-text-" + id).val(tmpStr + $(obj).html()); + var ins = $(obj).html(); + ins = ins.replace('<','<'); + ins = ins.replace('>','>'); + ins = ins.replace('&','&'); + ins = ins.replace('"','"'); + $("#comment-edit-text-" + id).val(tmpStr + ins); } function showHideComments(id) { |