4 * This contains HTML5 entities to use with serializing.
6 * The list here is mildly different from the list at \Masterminds\HTML5\Entities because
7 * that list was generated from the w3c. It contains some entities that are
8 * not entirely proper such as &am; which maps to &. This list is meant to be
9 * a fallback for PHP versions prior to PHP 5.4 when dealing with encoding.
11 namespace Masterminds\HTML5\Serializer;
14 * A mapping of entities to their html5 representation.
16 * versions that don't have the mapping.
21 public static $map = array(
78 '´' => '´',
284 '˜' => '˜',
285 '˝' => '˝',
286 '̑' => '̑',
338 'ϕ' => 'ϕ',
344 'ϵ' => 'ϵ',
345 '϶' => '϶',
444 ' ' => ' ',
446 '' => '​',
456 '‘' => '‘',
459 '“' => '“',
472 '‵' => '‵',
481 ' ' => ' ',
482 ' ' => '&ThickSpace',
485 '' => '⁢',
488 '⃛' => '⃛',
490 'ℂ' => 'ℂ',
493 'ℋ' => 'ℋ',
507 'ℚ' => 'ℚ',
520 'ℰ' => 'ℰ',
521 'ℱ' => 'ℱ',
522 'ℳ' => 'ℳ',
528 'ⅅ' => 'ⅅ',
529 'ⅆ' => 'ⅆ',
530 'ⅇ' => 'ⅇ',
531 'ⅈ' => 'ⅈ',
549 '↕' => '↕',
551 '↗' => '↗',
552 '↘' => '↘',
554 '↚' => '↚',
560 '↠' => '↠',
564 '↤' => '↤',
565 '↥' => '↥',
567 '↧' => '↧',
571 '↬' => '↬',
573 '↮' => '↮',
579 '↶' => '↶',
583 '↼' => '↼',
584 '↽' => '↽',
585 '↾' => '↾',
589 '⇂' => '⇂',
591 '⇄' => '⇄',
595 '⇈' => '⇈',
597 '⇊' => '⇊',
598 '⇋' => '⇋',
599 '⇌' => '⇌',
600 '⇍' => '⇍',
603 '⇐' => '⇐',
604 '⇑' => '⇑',
606 '⇓' => '⇓',
608 '⇕' => '⇕',
616 '⇤' => '⇤',
617 '⇥' => '⇥',
618 '⇵' => '⇵',
632 '∋' => '∋',
635 '∐' => '∐',
638 '∓' => '∓',
652 '∤' => '∤',
653 '∥' => '∥',
654 '∦' => '∦',
664 '∮' => '∮',
665 '∯' => '∯',
690 '≅' => '≅',
703 '≏' => '≏',
708 '≒' => '≒',
709 '≓' => '≓',
716 '≜' => '≜',
719 '≡' => '≡',
721 '≢' => '≢',
729 '≧̸' => '&NotGreaterFullEqual',
731 '≨︀' => '&lvertneqq',
733 '≩︀' => '&gvertneqq',
738 '≫̸' => '&NotGreaterGreater',
741 '≭' => '≭',
744 '≰' => '≰',
746 '≲' => '≲',
747 '≳' => '≳',
753 '≹' => '≹',
756 '≼' => '≼',
757 '≽' => '≽',
759 '≿' => '≿',
760 '≿̸' => '&NotSucceedsTilde',
762 '⊁' => '⊁',
769 '⊆' => '⊆',
771 '⊈' => '⊈',
772 '⊉' => '⊉',
773 '⊊' => '⊊',
775 '⊋' => '⊋',
778 '⊎' => '⊎',
780 '⊏̸' => '&NotSquareSubset',
782 '⊐̸' => '&NotSquareSuperset',
783 '⊑' => '⊑',
784 '⊒' => '⊒',
789 '⊕' => '⊕',
791 '⊗' => '⊗',
793 '⊙' => '⊙',
806 '⊨' => '⊨',
815 '⊲' => '⊲',
817 '⊴' => '⊴',
819 '⊵' => '⊵',
843 '⋍' => '⋍',
845 '⋏' => '⋏',
850 '⋔' => '⋔',
858 '⋚' => '⋚',
860 '⋛' => '⋛',
862 '⋞' => '⋞',
864 '⋠' => '⋠',
865 '⋡' => '⋡',
866 '⋢' => '⋢',
867 '⋣' => '⋣',
873 '⋫' => '⋫',
875 '⋭' => '⋭',
895 '⌆' => '⌆',
897 '⌉' => '⌉',
898 '⌊' => '⌊',
899 '⌋' => '⌋',
923 '⎴' => '⎴',
926 '⏜' => '⏜',
927 '⏝' => '⏝',
928 '⏞' => '⏞',
929 '⏟' => '⏟',
934 '─' => '─',
982 '▫' => '▫',
986 '△' => '△',
987 '▴' => '▴',
989 '▸' => '▸',
991 '▽' => '▽',
992 '▾' => '▾',
993 '▿' => '▿',
994 '◂' => '◂',
1003 '◻' => '◻',
1004 '◼' => '◼',
1010 '♠' => '♠',
1013 '♦' => '♦',
1022 '❘' => '❘',
1025 '⟈' => '⟈',
1027 '⟦' => '⟦',
1028 '⟧' => '⟧',
1030 '⟩' => '⟩',
1035 '⟵' => '⟵',
1036 '⟶' => '⟶',
1037 '⟷' => '⟷',
1039 '⟹' => '⟹',
1042 '⟿' => '⟿',
1051 '⤐' => '⤐',
1052 '⤑' => '⤑',
1053 '⤒' => '⤒',
1054 '⤓' => '⤓',
1083 '⥉' => '⥉',
1084 '⥊' => '⥊',
1085 '⥋' => '⥋',
1086 '⥎' => '⥎',
1087 '⥏' => '⥏',
1088 '⥐' => '⥐',
1089 '⥑' => '⥑',
1090 '⥒' => '⥒',
1091 '⥓' => '⥓',
1092 '⥔' => '⥔',
1093 '⥕' => '⥕',
1094 '⥖' => '⥖',
1095 '⥗' => '⥗',
1096 '⥘' => '⥘',
1097 '⥙' => '⥙',
1098 '⥚' => '⥚',
1099 '⥛' => '⥛',
1100 '⥜' => '⥜',
1101 '⥝' => '⥝',
1102 '⥞' => '⥞',
1103 '⥟' => '⥟',
1104 '⥠' => '⥠',
1105 '⥡' => '⥡',
1119 '⥯' => '⥯',
1120 '⥰' => '⥰',
1150 '⦝' => '⦝',
1155 '⦨' => '⦨',
1156 '⦩' => '⦩',
1157 '⦪' => '⦪',
1158 '⦫' => '⦫',
1159 '⦬' => '⦬',
1160 '⦭' => '⦭',
1161 '⦮' => '⦮',
1162 '⦯' => '⦯',
1166 '⦳' => '⦳',
1167 '⦴' => '⦴',
1184 '⧎' => '⧎',
1185 '⧏' => '⧏',
1186 '⧏̸' => '&NotLeftTriangleBar',
1187 '⧐' => '⧐',
1188 '⧐̸' => '&NotRightTriangleBar',
1190 '⧝' => '⧝',
1193 '⧤' => '⧤',
1194 '⧥' => '⧥',
1196 '⧴' => '⧴',
1199 '⨁' => '⨁',
1200 '⨂' => '⨂',
1201 '⨄' => '⨄',
1202 '⨆' => '⨆',
1204 '⨍' => '⨍',
1205 '⨐' => '⨐',
1207 '⨒' => '⨒',
1208 '⨓' => '⨓',
1210 '⨕' => '⨕',
1212 '⨗' => '⨗',
1214 '⨣' => '⨣',
1225 '⨱' => '⨱',
1229 '⨶' => '⨶',
1233 '⨺' => '⨺',
1244 '⩈' => '⩈',
1245 '⩉' => '⩉',
1256 '⩘' => '⩘',
1265 '⩭̸' => '&ncongdot',
1289 '⪃' => '⪃',
1290 '⪄' => '⪄',
1297 '⪋' => '⪋',
1317 '⪡' => '⪡',
1318 '⪡̸' => '&NotNestedLessLess',
1319 '⪢' => '⪢',
1320 '⪢̸' => '&NotNestedGreaterGreater',
1335 '⪯̸' => '&NotPrecedesEqual',
1336 '⪰' => '⪰',
1337 '⪰̸' => '&NotSucceedsEqual',
1340 '⪵' => '⪵',
1342 '⪷' => '⪷',
1343 '⪸' => '⪸',
1344 '⪹' => '⪹',
1345 '⪺' => '⪺',
1358 '⫆' => '⫆',
1359 '⫆̸' => '&nsupseteqq',
1362 '⫋' => '⫋',
1365 '⫌︀' => '&varsupsetneqq',
1393 '⫽︀' => '&varsupsetneqq',