Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00015 final class UnTypographizer extends BaseFilter
00016 {
00017 private static $symbols =
00018 array(
00019 ' ' => ' ',
00020 ' < ' => ' < ',
00021 ' > ' => ' > ',
00022 '…' => '…',
00023 '™' => '™',
00024 '©' => '©',
00025 '№' => '№',
00026 '—' => '—',
00027 '—' => '—',
00028 '«' => '«',
00029 '»' => '»',
00030 '•' => '•',
00031 '®' => '®',
00032 '¼' => '¼',
00033 '½' => '½',
00034 '¾' => '¾',
00035 '±' => '±'
00036 );
00037
00041 public static function me()
00042 {
00043 return Singleton::getInstance(__CLASS__);
00044 }
00045
00046 public function apply($value)
00047 {
00048 return strtr($value, self::$symbols);
00049 }
00050 }
00051 ?>