note 35936 added to function.htmlentities

From: Date: Fri, 19 Sep 2003 15:17:14 +0000
Subject: note 35936 added to function.htmlentities
Groups: php.notes 
Request: Send a blank email to php-notes+get-56776@lists.php.net to get a copy of this message
// this is the macroman conversion table for the custom_htmlentities() function $macroman_table = array( //Below character 128 ASCII. //The only characters "34"=>"&quot;", "38"=>"&amp;", "60"=>"&lt;", "62"=>"&gt;", // Replace the verticle tab with a xhtml line break. // Many Mac database apps (FileMaker) use the verticle tab within a field to break lines // Replace 11 after 60 & 62 -- we want to keep the "<" & ">" characters in the output "11"=>"<br />", // all chars above 128 get html entitiles where available "128"=>"&Auml;", "129"=>"&Aring;", "130"=>"&Ccedil;", "131"=>"&Eacute;", "132"=>"&Ntilde;", "133"=>"&Ouml;", "134"=>"&Uuml;", "135"=>"&aacute;", "136"=>"&agrave;", "137"=>"&acirc;", "138"=>"&auml;", "139"=>"&atilde;", "140"=>"&aring;", "141"=>"&ccedil;", "142"=>"&eacute;", "143"=>"&egrave;", "144"=>"&ecirc;", "145"=>"&euml;", "146"=>"&iacute;", "147"=>"&igrave;", "148"=>"&icirc;", "149"=>"&iuml;", "150"=>"&ntilde;", "151"=>"&oacute;", "152"=>"&ograve;", "153"=>"&ocirc;", "154"=>"&ouml;", "155"=>"&otilde;", "156"=>"&uacute;", "157"=>"&ugrave;", "158"=>"&ucirc;", "159"=>"&uuml;", "160"=>"&dagger;", "161"=>"&deg;", "162"=>"&cent;", "163"=>"&pound;", "164"=>"&sect;", "165"=>"&bull;", "166"=>"&para;", "167"=>"&szlig;", "168"=>"&reg;", "169"=>"&copy;", "170"=>"&trade;", "171"=>"&acute;", "172"=>"&uml;", "173"=>"&ne;", "174"=>"&AElig;", "175"=>"&Oslash;", "176"=>"&infin;", "177"=>"&plusmn;", "178"=>"&le;", "179"=>"&ge;", "180"=>"&yen;", "181"=>"&micro;", "182"=>"&part;", "183"=>"&sum;", "184"=>"&prod;", "185"=>"&pi;", "186"=>"&int;", "187"=>"&ordf;", "188"=>"&ordm;", "189"=>"&Omega;", "190"=>"&aelig;", "191"=>"&oslash;", "192"=>"&iquest;", "193"=>"&iexcl;", "194"=>"&not;", "195"=>"&radic;", "196"=>"&fnof;", "197"=>"&asymp;", "198"=>"&#8710;", "199"=>"&laquo;", "200"=>"&raquo;", "201"=>"&hellip;", "202"=>"&nbsp;", "203"=>"&Agrave;", "204"=>"&Atilde;", "205"=>"&Otilde;", "206"=>"&OElig;", "207"=>"&oelig;", "208"=>"&ndash;", "209"=>"&mdash;", "210"=>"&ldquo;", "211"=>"&rdquo;", "212"=>"&lsquo;", "213"=>"&rsquo;", "214"=>"&divide;", "215"=>"&loz;", "216"=>"&yuml;", "217"=>"&Yuml;", "218"=>"&frasl;", "219"=>"&curren;", "219"=>"&euro;", "220"=>"&lsaquo;", "221"=>"&rsaquo;", "222"=>"fi", "223"=>"fl", "224"=>"&Dagger;", "225"=>"&middot;", "226"=>"&sbquo;", "227"=>"&bdquo;", "228"=>"&permil;", "229"=>"&Acirc;", "230"=>"&Ecirc;", "231"=>"&Aacute;", "232"=>"&Euml;", "233"=>"&Egrave;", "234"=>"&Iacute;", "235"=>"&Icirc;", "236"=>"&Iuml;", "237"=>"&Igrave;", "238"=>"&Oacute;", "239"=>"&Ocirc;", "240"=>"", // apple symbol, nothing to replace it with "241"=>"&Ograve;", "242"=>"&Uacute;", "243"=>"&Ucirc;", "244"=>"&Ugrave;", "245"=>"&#305;", "246"=>"&circ;", "247"=>"&tilde;", "248"=>"&macr;", "249"=>"&#728;", "250"=>"&#729;", "251"=>"&#730;", "252"=>"&cedil;", "253"=>"&#733;", "254"=>"&#731;", "255"=>"&#711;" ); ---- Manual Page -- http://www.php.net/manual/en/function.htmlentities.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35936 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35936&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35936&report=yes

« previous php.notes (#56776) next »