Fix overzealous quote replace
authorHypolite Petovan <mrpetovan@gmail.com>
Mon, 9 Jan 2017 01:25:52 +0000 (12:25 +1100)
committerHypolite Petovan <mrpetovan@gmail.com>
Mon, 9 Jan 2017 01:25:52 +0000 (12:25 +1100)
view/templates/head.tpl

index 3dd1bc7..f28f51b 100644 (file)
                ins = ins.replace("&lt;","<");
                ins = ins.replace("&gt;",">");
                ins = ins.replace("&amp;","&");
-               ins = ins.replace("&quot;",""");
+               ins = ins.replace("&quot;","\"");
                $("#comment-edit-text-" + id).val(tmpStr + ins);
        }
 
                ins = ins.replace("&lt;","<");
                ins = ins.replace("&gt;",">");
                ins = ins.replace("&amp;","&");
-               ins = ins.replace("&quot;",""");
+               ins = ins.replace("&quot;","\"");
                $("#comment-edit-text-" + id).val(tmpStr + ins);
                $(obj).val("");
        }