extends |
HTMLPurifier_Injector |
---|
Injector that converts configuration directive syntax %Namespace.Directive to links
Methods | ||
---|---|---|
public
|
prepare(HTMLPurifier_Config $config, HTMLPurifier_Context $context): string
Prepares the injector by giving it the config and context objects:
this allows references to important variables to be…
Prepares the injector by giving it the config and context objects: this allows references to important variables to be made within the injector. This function also checks if the HTML environment will work with the Injector (see checkNeeded()). ReturnsBoolean false if success, string of missing needed element/attribute if failure Overrides |
# |
public
|
handleText(HTMLPurifier_Token &$token)
Handler that is called when a text token is processed
|
# |
Methods inherited from HTMLPurifier_Injector |
---|
rewindOffset(), getRewindOffset(), checkNeeded(), allowsElement(), forward(), forwardUntilEndToken(), backward(), handleElement(), handleEnd(), notifyEnd() |
Properties | |||
---|---|---|---|
public
|
|
$name = 'PurifierLinkify'
|
# |
public
|
|
$docURL
|
# |
public
|
|
$needed = ['a' => ['href']]
|
# |
Properties inherited from HTMLPurifier_Injector |
---|
$htmlDefinition, $currentNesting, $currentToken, $inputZipper, $rewindOffset |