From b1d31aca519bf7ca99420ad99ccd9575cc24455f Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 15 Feb 2012 18:13:41 -0800 Subject: quick comments --- view/head.tpl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'view/head.tpl') 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) { -- cgit v1.2.3