mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-09 23:28:42 +00:00
Add a little bit of documentation about contexts for URIFilters.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
parent
9b10515fa4
commit
bfe2c10d07
@ -6,6 +6,18 @@
|
||||
* These filters can perform custom actions on a URI filter object,
|
||||
* including transformation or blacklisting.
|
||||
*
|
||||
* The following contexts may be available while URIFilters are being
|
||||
* processed:
|
||||
*
|
||||
* - EmbeddedURI: true if URI is an embedded resource that will
|
||||
* be loaded automatically on page load
|
||||
* - CurrentToken: a reference to the token that is currently
|
||||
* being processed
|
||||
* - CurrentAttr: the name of the attribute that is currently being
|
||||
* processed
|
||||
* - CurrentCSSProperty: the name of the CSS property that is
|
||||
* currently being processed (if applicable)
|
||||
*
|
||||
* @warning This filter is called before scheme object validation occurs.
|
||||
* Make sure, if you require a specific scheme object, you
|
||||
* you check that it exists. This allows filters to convert
|
||||
|
Loading…
Reference in New Issue
Block a user