function _views_rdf_strip_illegal_xml_attribute_value_chars in Views Datasource 7
Same name and namespace in other branches
- 6 views_rdf.module \_views_rdf_strip_illegal_xml_attribute_value_chars()
Replaces illegal characters in a XML attribute value string with their encoded entities as well as the " char.
Parameters
$input: String to process.
Return value
String with illegal characters stripped away and entities encoded.
2 calls to _views_rdf_strip_illegal_xml_attribute_value_chars()
- template_preprocess_views_views_rdf_style_doap in views/
theme/ views_views_rdf_style.theme.inc - Template preprocess for the DOAP vocabulary
- template_preprocess_views_views_rdf_style_foaf in views/
theme/ views_views_rdf_style.theme.inc - Template preprocess for the FOAF vocabulary
File
- ./
views_rdf.module, line 177 - Module definition for views_rdf
Code
function _views_rdf_strip_illegal_xml_attribute_value_chars($input) {
$output = str_replace('<', '<', $input);
// encode left-angled bracket
$output = str_replace('>', '>', $output);
// encode right-angled bracket
$output = str_replace('"', '"', $output);
// encode quote
return $output;
}