This repository has been archived on 2025-02-01. You can view files and clone it, but cannot push or open issues or pull requests.
accm-website/includes/utils/OutputSanitizer.inc.php
2010-08-14 22:32:09 +02:00

16 lines
344 B
PHP

<?php
include_once './includes/database/MySQLDatabase.inc.php';
/**
* This class is responsible for sanitazing the outputs before display.
*
* @author Thomas Schwery <thomas.schwery@epfl.ch>
*/
class OutputSanitizer {
public static function nl2br($text) {
return preg_replace("/(\r\n)+|(\n|\r)+/", "<br>", $text);
}
}
?>