mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-23 08:51:53 +00:00
7c86e3cc0f
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@223 48356398-32a2-884e-a903-53898d9a118a
30 lines
624 B
PHP
30 lines
624 B
PHP
<?php
|
|
|
|
class HTMLPurifier_CSSDefinition
|
|
{
|
|
|
|
var $info = array();
|
|
|
|
function &instance($prototype = null) {
|
|
static $instance = null;
|
|
if ($prototype) {
|
|
$instance = $prototype;
|
|
} elseif (!$instance) {
|
|
$instance = new HTMLPurifier_CSSDefinition();
|
|
$instance->setup();
|
|
}
|
|
return $instance;
|
|
}
|
|
|
|
function HTMLPurifier_CSSDefinition() {}
|
|
|
|
function setup() {
|
|
|
|
$this->info['text-align'] = new HTMLPurifier_AttrDef_Enum(
|
|
array('left', 'right', 'center', 'justify'), false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|