Advertisement
Dario95

Untitled

Jul 15th, 2021
1,446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1.         switch ($this->Debugoutput) {
  2.             case 'error_log':
  3.                 //Don't output, just log
  4.                 error_log($str);
  5.                 break;
  6.             case 'html':
  7.                 //Cleans up output a bit for a better looking, HTML-safe output
  8.                 echo htmlentities(
  9.                     preg_replace('/[\r\n]+/', '', $str),
  10.                     ENT_QUOTES,
  11.                     'UTF-8'
  12.                 )
  13.                 . "<br>\n";
  14.                 break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement