]> git.wh0rd.org - tt-rss.git/blob - lib/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/FrameTarget.php
strip_tags_long: use htmlpurifier to properly reformat html content
[tt-rss.git] / lib / htmlpurifier / library / HTMLPurifier / AttrDef / HTML / FrameTarget.php
1 <?php
2
3 /**
4 * Special-case enum attribute definition that lazy loads allowed frame targets
5 */
6 class HTMLPurifier_AttrDef_HTML_FrameTarget extends HTMLPurifier_AttrDef_Enum
7 {
8
9 public $valid_values = false; // uninitialized value
10 protected $case_sensitive = false;
11
12 public function __construct() {}
13
14 public function validate($string, $config, $context) {
15 if ($this->valid_values === false) $this->valid_values = $config->get('Attr', 'AllowedFrameTargets');
16 return parent::validate($string, $config, $context);
17 }
18
19 }
20
21 // vim: et sw=4 sts=4