diff --git a/modules/Vtiger/uitypes/Text.php b/modules/Vtiger/uitypes/Text.php index 5207531bfe4dd9144112558b0d2435ae1cc3c45e..ccbe2f792f93b685461e35c5ed9b17a0a85c26a5 100644 --- a/modules/Vtiger/uitypes/Text.php +++ b/modules/Vtiger/uitypes/Text.php @@ -19,6 +19,9 @@ class Vtiger_Text_UIType extends Vtiger_Base_UIType { if(in_array($this->get('field')->getFieldName(),array('signature','commentcontent'))) { return $value; } + if($removeTags){ + $value = strip_tags($value,'<br>'); + } return nl2br(purifyHtmlEventAttributes($value, true)); }