mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-09 16:56:20 +02:00
Initial implementation of XHTMLDefinition, you can see it in action at the smoketest printDefinition.php?x (add the x at the end).
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@707 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
27
library/HTMLPurifier/HTMLModule.php
Normal file
27
library/HTMLPurifier/HTMLModule.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Represents an XHTML 1.1 module, with information on elements, tags
|
||||
* and attributes.
|
||||
* @note Even though this is technically XHTML 1.1, it is also used for
|
||||
* regular HTML parsing. We are using modulization as a convenient
|
||||
* way to represent the internals of HTMLDefinition, and our
|
||||
* implementation is by no means conforming and does not directly
|
||||
* use the normative DTDs or XML schemas.
|
||||
*/
|
||||
|
||||
class HTMLPurifier_HTMLModule
|
||||
{
|
||||
var $elements = array();
|
||||
var $info = array();
|
||||
var $content_sets = array();
|
||||
}
|
||||
|
||||
class HTMLPurifier_HTMLModuleElement
|
||||
{
|
||||
var $attr = array();
|
||||
var $content_model;
|
||||
var $content_model_type = 'optional';
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user