From 37108cca315daa80e3f3ba5a4b4490b4cfad8184 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Mon, 30 Sep 2019 15:48:37 +0530 Subject: fixed code display issue --- js/r_tbc_fixer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/r_tbc_fixer.js b/js/r_tbc_fixer.js index 769d5a5..1dddaa4 100755 --- a/js/r_tbc_fixer.js +++ b/js/r_tbc_fixer.js @@ -127,10 +127,10 @@ type: "POST", dataType: "html", success: function(data) { - var code = $(data).filter("#code").html(); + var code = $(data).filter("#code").text(); /* checking whether it is for .well or textarea */ if ($code.hasClass("fix-caption-code")) { - $code.html(code); + $code.text(code); } else { $code.val(code); } -- cgit