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

Fixes #5020
pull/274/head
Francis Lachapelle 2020-05-12 11:14:30 -04:00
parent d7979871bc
commit 964e6f0cb1
1 changed files with 1 additions and 1 deletions

View File

@ -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';