mirror of https://github.com/BOINC/boinc.git
21 lines
429 B
PHP
21 lines
429 B
PHP
|
<?php
|
||
|
require_once("../inc/kses.php");
|
||
|
|
||
|
$allowed = array(
|
||
|
'b' => array(),
|
||
|
'i' => array(),
|
||
|
'a' => array('href' => array('maxlen' => 150), 'title' => 1),
|
||
|
'p' => array('align' => 1),
|
||
|
'font' => array('face' => 1),
|
||
|
'br' => array(),
|
||
|
'img' => array('src' => 1, 'border' => 1, 'height' => array('maxval' => 450))
|
||
|
);
|
||
|
|
||
|
|
||
|
function sanitize_html($str) {
|
||
|
global $allowed;
|
||
|
return kses($str, $allowed);
|
||
|
}
|
||
|
|
||
|
?>
|