protected function formatContent($html, $convertNewlines = false, $filter = false)
{
$str = $html;
if ($filter) {
$str = Gdn_Format::htmlFilter($str);
}
if ($convertNewlines) {
$str = preg_replace('/(\\015\\012)|(\\015)|(\\012)/', '<br>', $str);
}
// $str = strip_tags($str, ['b', 'i', 'p', 'strong', 'em', 'br']);
return $str;
}