diff --git a/js/misc-functions.js b/js/misc-functions.js index d9be7e9..73f23c5 100644 --- a/js/misc-functions.js +++ b/js/misc-functions.js @@ -643,7 +643,9 @@ function qOrAmp(stream) { function countCharsInQueetBox(src,trgt,btn) { - var $src_txt = $('
').append($.trim(src.text().replace(/^\s+|\s+$/g, ''))); + // count linebreaks by converting them to spaces + var $src_txt = $('').append(src.html().replace(/