[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/libraries/htmlpurifier/library/HTMLPurifier/Strategy/ -> MakeWellFormed.php (summary)

(no description)

File Size: 455 lines (18 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

HTMLPurifier_Strategy_MakeWellFormed:: (5 methods):
  execute()
  processToken()
  insertBefore()
  remove()
  swap()


Class: HTMLPurifier_Strategy_MakeWellFormed  - X-Ref

Takes tokens makes them well-formed (balance end tags, etc.)

execute($tokens, $config, $context)   X-Ref
Current instance of HTMLPurifier_Context.


processToken($token, $injector = -1)   X-Ref
Processes arbitrary token values for complicated substitution patterns.
In general:

If $token is an array, it is a list of tokens to substitute for the
current token. These tokens then get individually processed. If there
is a leading integer in the list, that integer determines how many
tokens from the stream should be removed.

If $token is a regular token, it is swapped with the current token.

If $token is false, the current token is deleted.

If $token is an integer, that number of tokens (with the first token
being the current one) will be deleted.

param: $token Token substitution value
param: $injector Injector that performed the substitution; default is if

insertBefore($token)   X-Ref
Inserts a token before the current token. Cursor now points to this token


remove()   X-Ref
Removes current token. Cursor now points to new token occupying previously
occupied space.


swap($token)   X-Ref
Swap current token with new token. Cursor points to new token (no change).




Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1