HTMLPurifier 4.4.0
/home/ezyang/Dev/htmlpurifier/library/HTMLPurifier/HTMLModule/Ruby.php
Go to the documentation of this file.
00001 <?php
00002 
00007 class HTMLPurifier_HTMLModule_Ruby extends HTMLPurifier_HTMLModule
00008 {
00009 
00010     public $name = 'Ruby';
00011 
00012     public function setup($config) {
00013         $this->addElement('ruby', 'Inline',
00014             'Custom: ((rb, (rt | (rp, rt, rp))) | (rbc, rtc, rtc?))',
00015             'Common');
00016         $this->addElement('rbc', false, 'Required: rb', 'Common');
00017         $this->addElement('rtc', false, 'Required: rt', 'Common');
00018         $rb = $this->addElement('rb', false, 'Inline', 'Common');
00019         $rb->excludes = array('ruby' => true);
00020         $rt = $this->addElement('rt', false, 'Inline', 'Common', array('rbspan' => 'Number'));
00021         $rt->excludes = array('ruby' => true);
00022         $this->addElement('rp', false, 'Optional: #PCDATA', 'Common');
00023     }
00024 
00025 }
00026 
00027 // vim: et sw=4 sts=4