You are here

function _views_rdf_strip_illegal_xml_name_chars in Views Datasource 7

Same name and namespace in other branches
  1. 6 views_rdf.module \_views_rdf_strip_illegal_xml_name_chars()

Strips characters not matching the XML Name production:

Parameters

$input: String to process.

Return value

String with illegal characters stripped.

File

./views_rdf.module, line 193
Module definition for views_rdf

Code

function _views_rdf_strip_illegal_xml_name_chars($input) {
  $output = preg_replace("/(^xml)|([^A-Za-z0-9_\\-\\.:])/", "", $input);
  return $output;
}