]> git.mxchange.org Git - friendica.git/blobdiff - view/head.tpl
quick comments
[friendica.git] / view / head.tpl
index 70d830faa784956087eb9f99ff8b1bd804b01309..2a18370887dbd5e72c6c20650d1172730cedac5a 100755 (executable)
                        $("#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) {