function advagg_jsspecialchars in Advanced CSS/JS Aggregation 7.2
Replace quotes with the html version of it.
Parameters
string $string: Input string. Convert quotes to html chars.
Return value
string Transformed string.
1 call to advagg_jsspecialchars()
- theme_html_script_tag in ./
advagg.module - Returns HTML for a generic HTML tag with attributes.
File
- ./
advagg.module, line 4047 - Advanced CSS/JS aggregation module.
Code
function advagg_jsspecialchars($string = '') {
$string = str_replace('"', '"', $string);
$string = str_replace("'", ''', $string);
return $string;
}