Details |
Letzte Änderung |
Log anzeigen
| RSS feed
| Revision |
Autor |
Zeilennr. |
Zeile |
| 1 |
lars |
1 |
<?php
|
|
|
2 |
class HTML2PS_XMLUtils {
|
|
|
3 |
function valid_attribute_name($name) {
|
|
|
4 |
// Note that, technically, it is not correct, as XML standard treats as letters
|
|
|
5 |
// characters other than a-z too.. Nevertheless, this simple variant
|
|
|
6 |
// will do for XHTML/HTML
|
|
|
7 |
|
|
|
8 |
return preg_match("/[a-z_:][a-z0-9._:.]*/i",$name);
|
|
|
9 |
}
|
|
|
10 |
}
|
|
|
11 |
?>
|