1 | <?php |
||
9 | class Janitor |
||
10 | { |
||
11 | /** |
||
12 | * A utility method which either strips html tags or escapes them. |
||
13 | * |
||
14 | * @param string $string The string to be cleaned |
||
15 | * @param boolean $strip When true the tags are stripped instead of being escaped. |
||
16 | * @return string |
||
17 | */ |
||
18 | public function cleanHtml($string, $strip = false) |
||
26 | } |