fix(mail(js)): encode HTML entities when computing height of textarea

Fixes #5020
This commit is contained in:
Francis Lachapelle
2020-05-12 11:16:32 -04:00
parent d7979871bc
commit 964e6f0cb1
@@ -44,7 +44,7 @@
function AutoGrowTextArea() {
$timeout(function() {
content = textarea.value;
content = textarea.value.encodeEntities();
content = content.replace(/\n/g, '<br>');
hiddenDiv.innerHTML = content + '<br style="line-height: 3px;">';
hiddenDiv.style.visibility = 'hidden';