mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-16 20:33:19 +00:00
fix(mail(js)): encode HTML entities when computing height of textarea
Fixes #5020
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user