[ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package s9e\TextFormatter 5 * @copyright Copyright (c) 2010-2022 The s9e authors 6 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 7 */ 8 namespace s9e\TextFormatter\Configurator\Helpers; 9 10 use s9e\TextFormatter\Configurator\Helpers\TemplateParser\Normalizer; 11 use s9e\TextFormatter\Configurator\Helpers\TemplateParser\Optimizer; 12 use s9e\TextFormatter\Configurator\Helpers\TemplateParser\Parser; 13 14 class TemplateParser 15 { 16 /** 17 * XSL namespace 18 */ 19 const XMLNS_XSL = 'http://www.w3.org/1999/XSL/Transform'; 20 21 /** 22 * @var string Regexp that matches the names of all void elements 23 * @link http://www.w3.org/TR/html-markup/syntax.html#void-elements 24 */ 25 public static $voidRegexp = '/^(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/Di'; 26 27 /** 28 * Parse a template into an internal representation 29 * 30 * @param string $template Source template 31 * @return DOMDocument Internal representation 32 */ 33 public static function parse($template) 34 { 35 $parser = new Parser(new Normalizer(new Optimizer)); 36 37 return $parser->parse($template); 38 } 39 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Mon Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |