';
print htmlentities($buffer);
print '
';
}
/**
* version of fwrite which checks for failure
* @param resource $fp
* @param string $string
* @return number of written bytes. false on failure
* @since 1.4.3
*/
function sq_fwrite($fp, $string) {
// write to file
$count = @fwrite($fp,$string);
// the number of bytes written should be the length of the string
if($count != strlen($string)) {
return FALSE;
}
return $count;
}
/**
* sq_get_html_translation_table
*
* Returns the translation table used by sq_htmlentities()
*
* @param integer $table html translation table. Possible values (without quotes):
*