AutorÃa | Ultima modificación | Ver Log |
HTML.DefinitionIDTYPE: string/nullDEFAULT: NULLVERSION: 2.0.0--DESCRIPTION--<p>Unique identifier for a custom-built HTML definition. If you editthe raw version of the HTMLDefinition, introducing changes that theconfiguration object does not reflect, you must specify this variable.If you change your custom edits, you should change this directive, orclear your cache. Example:</p><pre>$config = HTMLPurifier_Config::createDefault();$config->set('HTML', 'DefinitionID', '1');$def = $config->getHTMLDefinition();$def->addAttribute('a', 'tabindex', 'Number');</pre><p>In the above example, the configuration is still at the defaults, butusing the advanced API, an extra attribute has been added. Theconfiguration object normally has no way of knowing that this changehas taken place, so it needs an extra directive: %HTML.DefinitionID.If someone else attempts to use the default configuration, these twopieces of code will not clobber each other in the cache, since one hasan extra directive attached to it.</p><p>You <em>must</em> specify a value to this directive to use theadvanced API features.</p>--# vim: et sw=4 sts=4