static function note_scrub($text)
 {
     $ppn_allow_html = ppnFunctionCollection::get_settings('allow_html');
     if ($ppn_allow_html) {
         return str_replace("\n", '<br />', ppnFunctionCollection::kses_data($text));
     } else {
         return str_replace("\n", '<br />', htmlentities($text, ENT_QUOTES, ppnFunctionCollection::get_settings('charset')));
     }
 }
 function note_scrub($text)
 {
     global $ppn_charset, $ppn_allow_html;
     if ($ppn_allow_html) {
         return str_replace("\n", '<br />', ppnFunctionCollection::kses_data($text));
     } else {
         return str_replace("\n", '<br />', htmlentities($text, ENT_QUOTES, $ppn_charset));
     }
 }