diff --git a/UI/WebServerResources/js/Common/sgAutogrow.directive.js b/UI/WebServerResources/js/Common/sgAutogrow.directive.js index 1daf07f40..760be1449 100644 --- a/UI/WebServerResources/js/Common/sgAutogrow.directive.js +++ b/UI/WebServerResources/js/Common/sgAutogrow.directive.js @@ -44,7 +44,7 @@ function AutoGrowTextArea() { $timeout(function() { - content = textarea.value; + content = textarea.value.encodeEntities(); content = content.replace(/\n/g, '
'); hiddenDiv.innerHTML = content + '
'; hiddenDiv.style.visibility = 'hidden';