diff --git a/application/dashlet.class.inc.php b/application/dashlet.class.inc.php
index 39f5c155f3..3bdd09990b 100644
--- a/application/dashlet.class.inc.php
+++ b/application/dashlet.class.inc.php
@@ -355,6 +355,7 @@ class DashletPlainText extends Dashlet
public function Render($oPage, $bEditMode = false, $aExtraParams = array())
{
$sText = htmlentities($this->aProperties['text'], ENT_QUOTES, 'UTF-8');
+ $sText = str_replace(array("\r\n", "\n", "\r"), "
", $sText);
$sId = 'plaintext_'.($bEditMode? 'edit_' : '').$this->sId;
$oPage->add('