You are here

function _views_xhtml_strip_illegal_xml_name_chars in Views Datasource 7

Same name and namespace in other branches
  1. 6 views_xhtml.module \_views_xhtml_strip_illegal_xml_name_chars()

Strips characters not matching the xhtml Name production:

Parameters

$input: String to process.

Return value

String with illegal characters stripped.

File

./views_xhtml.module, line 197
Module definition for views_xhtml

Code

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