Files
luos/thirdparty/html2ps_pdf/xml.validation.inc.php
Paula Quispe 9eb7d6cac2 HOR-2689
2017-08-03 17:00:30 -04:00

11 lines
326 B
PHP

<?php
class HTML2PS_XMLUtils {
function valid_attribute_name($name) {
// Note that, technically, it is not correct, as XML standard treats as letters
// characters other than a-z too.. Nevertheless, this simple variant
// will do for XHTML/HTML
return preg_match("/[a-z_:][a-z0-9._:.]*/i",$name);
}
}
?>