From: <var...@us...> - 2016-02-16 11:52:26
|
Revision: 9804 http://sourceforge.net/p/phpwiki/code/9804 Author: vargenau Date: 2016-02-16 11:52:24 +0000 (Tue, 16 Feb 2016) Log Message: ----------- Remove html_entities (unused) Modified Paths: -------------- trunk/lib/InlineParser.php Modified: trunk/lib/InlineParser.php =================================================================== --- trunk/lib/InlineParser.php 2016-02-12 11:35:42 UTC (rev 9803) +++ trunk/lib/InlineParser.php 2016-02-16 11:52:24 UTC (rev 9804) @@ -1144,35 +1144,6 @@ } } -// "..." => "…" browser specific display (not cached?) -// Support some HTML::Entities: (C) for copy, --- for mdash, -- for ndash -// TODO: "--" => "&emdash;" browser specific display (not cached?) - -class Markup_html_entities extends SimpleMarkup -{ - //public $_match_regexp = '(: \.\.\.|\-\-|\-\-\-|\(C\) )'; - - function __construct() - { - $this->_entities = array('...' => '…', - '--' => '–', - '---' => '—', - '(C)' => '©', - '©' => '©', - '™' => '™', - ); - $this->_match_regexp = - '(: ' . - join('|', array_map('preg_quote', array_keys($this->_entities))) . - ' )'; - } - - function markup($match) - { - return HTML::raw($this->_entities[$match]); - } -} - class Markup_isonumchars extends SimpleMarkup { public $_match_regexp = '\&\#\d{2,5};'; @@ -1219,7 +1190,7 @@ 'wikicreole_underline', 'old_emphasis', 'nestled_emphasis', 'html_emphasis', 'html_abbr', 'plugin', 'plugin_wikicreole', - 'isonumchars', 'isohexchars', /*'html_entities'*/ + 'isonumchars', 'isohexchars', ); if (defined('DISABLE_MARKUP_WIKIWORD') and DISABLE_MARKUP_WIKIWORD) $markup_types = array_remove($markup_types, 'wikiword'); @@ -1364,7 +1335,7 @@ parent::__construct (array('linebreak', 'html_emphasis', 'html_abbr', 'plugin', 'plugin_wikicreole', - 'isonumchars', 'isohexchars', /*'html_entities',*/ + 'isonumchars', 'isohexchars', )); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |