Same as htmlspecialchars, only that chars are not replaced if $plain !== true. This makes print_code() cleaner.
@access private @version 1.0
Paramètres
string $string:
bool $plain:
Return value
string
Voir aussi
1 call to csstidy_print::_htmlsp()
- csstidy_print::_print dans advagg_css_compress/
csstidy/ class.csstidy_print.inc - Returns the formatted CSS Code and saves it into $this->output_css and $this->output_css_plain
Fichier
-
advagg_css_compress/
csstidy/ class.csstidy_print.inc, line 353
Classe
- csstidy_print
- CSS Printing class
Code
function _htmlsp($string, $plain) {
if (!$plain) {
return htmlspecialchars($string, ENT_QUOTES, 'utf-8');
}
return $string;
}