aboutsummaryrefslogtreecommitdiffstats
path: root/view/head.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/head.tpl')
-rwxr-xr-xview/head.tpl7
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('&lt;','<');
+ ins = ins.replace('&gt;','>');
+ ins = ins.replace('&amp;','&');
+ ins = ins.replace('&quot;','"');
+ $("#comment-edit-text-" + id).val(tmpStr + ins);
}
function showHideComments(id) {