Beispiel #1
0
 /**
  * Prepares simple body text with word wrap, censoring, and nl2br.
  * HTML/BB code is not parsed within string.
  *
  * @param string $string
  *
  * @return string
  */
 public static function helperBodyText($string)
 {
     $string = XenForo_Helper_String::censorString($string);
     $string = htmlspecialchars($string);
     $string = XenForo_Helper_String::autoLinkPlainText($string);
     $string = XenForo_Helper_String::linkTaggedPlainText($string);
     return nl2br($string);
 }