You are here

function _views_xml_strip_illegal_xml_name_chars in Views Datasource 7

Same name and namespace in other branches
  1. 6 views_xml.module \_views_xml_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.

5 calls to _views_xml_strip_illegal_xml_name_chars()
template_preprocess_views_views_xhtml_style_hcalendar in views/theme/views_views_xhtml_style.theme.inc
template_preprocess_views_views_xhtml_style_hcard in views/theme/views_views_xhtml_style.theme.inc
@file View template to render view fields as xhtml.
template_preprocess_views_views_xml_style_atom in views/theme/views_views_xml_style.theme.inc
Template preprocess for the Atom format
template_preprocess_views_views_xml_style_opml in views/theme/views_views_xml_style.theme.inc
template_preprocess_views_views_xml_style_raw in views/theme/views_views_xml_style.theme.inc
@file View template to render view fields as XML.

File

./views_xml.module, line 405
Module definition for views_xml

Code

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