Add div to list of tags that avoid HTML encoding on replacements

Fixes HTML tracker description from external source showing HTML in notifications
This commit is contained in:
nathangray 2018-07-19 12:50:22 -06:00
parent 7c01fa533b
commit de15acc03d

View File

@ -1071,7 +1071,8 @@ abstract class Merge
} }
} }
if(!$this->parse_html_styles || ( if(!$this->parse_html_styles || (
strpos($value, "\n") !== FALSE && strpos($value,'<br') === FALSE && strpos($value, '<span') === FALSE && strpos($value, '<p') === FALSE strpos($value, "\n") !== FALSE &&
strpos($value,'<br') === FALSE && strpos($value, '<span') === FALSE && strpos($value, '<p') === FALSE && strpos($value, '<div') === FALSE
)) ))
{ {
// Encode special chars so they don't break the file // Encode special chars so they don't break the file