Changes:
+ * removed 'is_escaper' option for filters (a left over from the previous version) -- you must use 'is_safe' now instead
* fixed usage of operators as method names (like is, in, and not)
* changed the order of execution for node visitors
* fixed default() filter behavior when used with strict_variables set to on
{
$this->options = array_merge(array(
'needs_environment' => false,
+ 'pre_escape' => null,
), $options);
-
- if (isset($this->options['is_escaper'])) {
- $this->options['is_safe'] = array('html');
- unset($this->options['is_escaper']);
- }
}
public function needsEnvironment()
public function getPreEscape()
{
- if (isset($this->options['pre_escape'])) {
- return $this->options['pre_escape'];
- }
-
- return null;
+ return $this->options['pre_escape'];
}
}