Как я могу «попросить» htmlentities()
не преобразовывать определенные символы?Например,
php,
<?php echo htmlentities(file_get_contents('fonts.css'),ENT_QUOTES);?>
fonts.css,
@font-face {
font-family: 'ChunkFiveRoman';
src: url('chunkfive-webfont.eot'); /* EOT file for IE */
src: local('☺'), url('chunkfive-webfont.ttf') format('truetype'); /* TTF file for CSS3 browsers */
}
результат,
@font-face {
font-family: 'ChunkFiveRoman';
src: url('chunkfive-webfont.eot'); /* EOT file for IE */
src: local('�'), url('chunkfive-webfont.ttf') format('truetype'); /* TTF file for CSS3 browsers */
}
Я хочу сохранить '☺'как есть, но не для преобразования в' â�º '.
Возможно ли это?