... syntax * More info: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li * * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) * @author Anika Henke * @author Sascha Leib */ class syntax_plugin_adhoctags_li extends syntax_plugin_adhoctags_abstractheadline { protected $tag = 'li'; /* allow link attributes: */ function allowAttribute(&$name, &$value) { switch ($name) { case 'value': return (preg_match('/^([\d]+)$/', trim($value))); break; default: return false; } } }