note 100388 deleted from function.htmlentities by cmb
| From: | cmb@php.net | Date: | Sun, 01 Dec 2019 08:30:00 +0000 |
| Subject: | note 100388 deleted from function.htmlentities by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213293@lists.php.net to get a copy of this message | ||
Note Submitter: php dot net at softmoon-webware dot com
----
<?php
$HTML_ENTS=array("quot", "amp", "apos", "lt",
"gt", "nbsp", "iexcl", "cent",
"pound","curren", "yen", "brvbar", "sect",
"uml", "copy", "ordf", "laquo",
"not", "shy", "reg", "macr", "deg",
"plusmn", "sup2", "sup3", "acute",
"micro", "para", "middot", "cedil", "sup1",
"ordm", "raquo", "frac14",
"frac12", "frac34", "iquest", "Agrave", "Aacute",
"Acirc", "Atilde", "Auml",
"Aring", "AElig", "Ccedil", "Egrave", "Eacute",
"Ecirc", "Euml", "Igrave",
"Iacute", "Icirc", "Iuml", "ETH", "Ntilde",
"Ograve", "Oacute", "Ocirc",
"Otilde", "Ouml", "times", "Oslash", "Ugrave",
"Uacute", "Ucirc", "Uuml",
"Yacute", "THORN", "szlig", "agrave", "aacute",
"acirc", "atilde", "auml",
"aring", "aelig", "ccedil", "egrave", "eacute",
"ecirc", "euml", "igrave",
"iacute", "icirc", "iuml", "eth", "ntilde",
"ograve", "oacute", "ocirc",
"otilde", "ouml", "divide", "oslash", "ugrave",
"uacute", "ucirc", "uuml",
"yacute", "thorn", "yuml", "OElig", "oelig",
"Scaron", "scaron", "Yuml",
"fnof", "circ", "tilde", "Alpha", "Beta",
"Gamma", "Delta", "Epsilon",
"Zeta", "Eta", "Theta", "Iota", "Kappa",
"Lambda", "Mu", "Nu", "Xi",
"Omicron", "Pi", "Rho", "Sigma", "Tau",
"Upsilon", "Phi", "Chi", "Psi",
"Omega", "alpha", "beta", "gamma", "delta",
"epsilon", "zeta", "eta",
"theta", "iota", "kappa", "lambda", "mu",
"nu", "xi", "omicron", "pi",
"rho", "sigmaf", "sigma", "tau", "upsilon",
"phi", "chi", "psi", "omega",
"thetasym", "upsih", "piv", "ensp", "emsp",
"thinsp", "zwnj", "zwj", "lrm",
"rlm", "ndash", "mdash", "lsquo", "rsquo",
"sbquo", "ldquo", "rdquo",
"bdquo", "dagger", "Dagger", "bull", "hellip",
"permil", "prime", "Prime",
"lsaquo", "rsaquo", "oline", "frasl", "euro",
"image", "weierp", "real",
"trade", "alefsym", "larr", "uarr", "rarr",
"darr", "harr", "crarr", "lArr",
"uArr", "rArr", "dArr", "hArr", "forall",
"part", "exist", "empty", "nabla",
"isin", "notin", "ni", "prod", "sum",
"minus", "lowast", "radic", "prop",
"infin", "ang", "and", "or", "cap",
"cup", "int", "there4", "sim", "cong",
"asymp", "ne", "equiv", "le", "ge",
"sub", "sup", "nsub", "sube", "supe",
"oplus", "otimes", "perp", "sdot", "lceil",
"rceil", "lfloor",
"rfloor", "lang", "rang", "loz", "spades",
"clubs", "hearts", "diams");
// The selection of tags below is optimized for use with a webmaster's database,
// --NOT-- to process user POSTs from the World Wide Web
// for inclusion on a public page.
// NOT included:
// form, input, select, option, label, optgroup, textarea, area, map,
// html, head, style, link, meta, base, body, isindex,
// frame, frameset, noframes
// (include those above at your wish, remove those below at your wish)
$HTML_TAGS=array("a", "abbr", "acronym", "address",
"applet", "b", "basefont",
"bdo", "big", "blockquote", "br", "button",
"caption", "center", "cite",
"code", "col", "colgroup", "dd", "del",
"dfn", "dir", "div", "dl", "dt", "em",
"embed", "fieldset", "font", "h1", "h2",
"h3", "h4", "h5", "h6", "hr", "i",
"iframe", "img", "ins", "kbd", "legend",
"li", "menu", "noembed", "noscript",
"object", "ol", "p", "param", "pre",
"q", "s", "samp", "script", "small",
"span", "strike", "strong", "sub", "sup",
"table", "tbody", "td", "tfoot",
"th", "thead", "title", "tr", "tt", "u",
"ul", "var");
$Xchars = array(
128 => '€',
130 => '‚',
131 => 'ƒ',
132 => '„',
133 => '…',
134 => '†',
135 => '‡',
136 => 'ˆ',
137 => '‰',
138 => 'Š',
139 => '‹',
140 => 'Œ',
142 => 'Ž',
145 => '‘',
146 => '’',
147 => '“',
148 => '”',
149 => '•',
150 => '–',
151 => '—',
152 => '˜',
153 => '™',
154 => 'š',
155 => '›',
156 => 'œ',
158 => 'ž',
159 => 'Ÿ');
?>