1 37 38 package org.htmlcleaner; 39 40 import java.util.HashMap ; 41 import java.util.Map ; 42 43 50 public class SpecialEntities { 51 52 static Map entities = new HashMap (); 53 54 static { 55 entities.put("nbsp", new Integer (160)); 56 entities.put("iexcl", new Integer (161)); 57 entities.put("curren", new Integer (164)); 58 entities.put("cent", new Integer (162)); 59 entities.put("pound", new Integer (163)); 60 entities.put("yen", new Integer (165)); 61 entities.put("brvbar", new Integer (166)); 62 entities.put("sect", new Integer (167)); 63 entities.put("uml", new Integer (168)); 64 entities.put("copy", new Integer (169)); 65 entities.put("ordf", new Integer (170)); 66 entities.put("laquo", new Integer (171)); 67 entities.put("not", new Integer (172)); 68 entities.put("shy", new Integer (173)); 69 entities.put("reg", new Integer (174)); 70 entities.put("trade", new Integer (8482)); 71 entities.put("macr", new Integer (175)); 72 entities.put("deg", new Integer (176)); 73 entities.put("plusmn", new Integer (177)); 74 entities.put("sup2", new Integer (178)); 75 entities.put("sup3", new Integer (179)); 76 entities.put("acute", new Integer (180)); 77 entities.put("micro", new Integer (181)); 78 entities.put("para", new Integer (182)); 79 entities.put("middot", new Integer (183)); 80 entities.put("cedil", new Integer (184)); 81 entities.put("sup1", new Integer (185)); 82 entities.put("ordm", new Integer (186)); 83 entities.put("raquo", new Integer (187)); 84 entities.put("frac14", new Integer (188)); 85 entities.put("frac12", new Integer (189)); 86 entities.put("frac34", new Integer (190)); 87 entities.put("iquest", new Integer (191)); 88 entities.put("times", new Integer (215)); 89 entities.put("divide", new Integer (247)); 90 91 entities.put("Agrave", new Integer (192)); 92 entities.put("Aacute", new Integer (193)); 93 entities.put("Acirc", new Integer (194)); 94 entities.put("Atilde", new Integer (195)); 95 entities.put("Auml", new Integer (196)); 96 entities.put("Aring", new Integer (197)); 97 entities.put("AElig", new Integer (198)); 98 entities.put("Ccedil", new Integer (199)); 99 entities.put("Egrave", new Integer (200)); 100 entities.put("Eacute", new Integer (201)); 101 entities.put("Ecirc", new Integer (202)); 102 entities.put("Euml", new Integer (203)); 103 entities.put("Igrave", new Integer (204)); 104 entities.put("Iacute", new Integer (205)); 105 entities.put("Icirc", new Integer (206)); 106 entities.put("Iuml", new Integer (207)); 107 entities.put("ETH", new Integer (208)); 108 entities.put("Ntilde", new Integer (209)); 109 entities.put("Ograve", new Integer (210)); 110 entities.put("Oacute", new Integer (211)); 111 entities.put("Ocirc", new Integer (212)); 112 entities.put("Otilde", new Integer (213)); 113 entities.put("Ouml", new Integer (214)); 114 entities.put("Oslash", new Integer (216)); 115 entities.put("Ugrave", new Integer (217)); 116 entities.put("Uacute", new Integer (218)); 117 entities.put("Ucirc", new Integer (219)); 118 entities.put("Uuml", new Integer (220)); 119 entities.put("Yacute", new Integer (221)); 120 entities.put("THORN", new Integer (222)); 121 entities.put("szlig", new Integer (223)); 122 entities.put("agrave", new Integer (224)); 123 entities.put("aacute", new Integer (225)); 124 entities.put("acirc", new Integer (226)); 125 entities.put("atilde", new Integer (227)); 126 entities.put("auml", new Integer (228)); 127 entities.put("aring", new Integer (229)); 128 entities.put("aelig", new Integer (230)); 129 entities.put("ccedil", new Integer (231)); 130 entities.put("egrave", new Integer (232)); 131 entities.put("eacute", new Integer (233)); 132 entities.put("ecirc", new Integer (234)); 133 entities.put("euml", new Integer (235)); 134 entities.put("igrave", new Integer (236)); 135 entities.put("iacute", new Integer (237)); 136 entities.put("icirc", new Integer (238)); 137 entities.put("iuml", new Integer (239)); 138 entities.put("eth", new Integer (240)); 139 entities.put("ntilde", new Integer (241)); 140 entities.put("ograve", new Integer (242)); 141 entities.put("oacute", new Integer (243)); 142 entities.put("ocirc", new Integer (244)); 143 entities.put("otilde", new Integer (245)); 144 entities.put("ouml", new Integer (246)); 145 entities.put("oslash", new Integer (248)); 146 entities.put("ugrave", new Integer (249)); 147 entities.put("uacute", new Integer (250)); 148 entities.put("ucirc", new Integer (251)); 149 entities.put("uuml", new Integer (252)); 150 entities.put("yacute", new Integer (253)); 151 entities.put("thorn", new Integer (254)); 152 entities.put("yuml", new Integer (255)); 153 154 entities.put("OElig", new Integer (338)); 155 entities.put("oelig", new Integer (339)); 156 entities.put("Scaron", new Integer (352)); 157 entities.put("scaron", new Integer (353)); 158 entities.put("Yuml", new Integer (376)); 159 entities.put("circ", new Integer (710)); 160 entities.put("tilde", new Integer (732)); 161 entities.put("ensp", new Integer (8194)); 162 entities.put("emsp", new Integer (8195)); 163 entities.put("thinsp", new Integer (8201)); 164 entities.put("zwnj", new Integer (8204)); 165 entities.put("zwj", new Integer (8205)); 166 entities.put("lrm", new Integer (8206)); 167 entities.put("rlm", new Integer (8207)); 168 entities.put("ndash", new Integer (8211)); 169 entities.put("mdash", new Integer (8212)); 170 entities.put("lsquo", new Integer (8216)); 171 entities.put("rsquo", new Integer (8217)); 172 entities.put("sbquo", new Integer (8218)); 173 entities.put("ldquo", new Integer (8220)); 174 entities.put("rdquo", new Integer (8221)); 175 entities.put("bdquo", new Integer (8222)); 176 entities.put("dagger", new Integer (8224)); 177 entities.put("Dagger", new Integer (8225)); 178 entities.put("hellip", new Integer (8230)); 179 entities.put("permil", new Integer (8240)); 180 entities.put("lsaquo", new Integer (8249)); 181 entities.put("rsaquo", new Integer (8250)); 182 entities.put("euro", new Integer (8364)); 183 } 184 185 } | Popular Tags |