Wordpress/wp-admin/js/custom-navigation-php-funct...

1 line
2.6 KiB
JavaScript
Raw Normal View History

function get_html_translation_table(i,g){var d={},f={},c=0,a="";var e={},b={};var j={},h={};e[0]="HTML_SPECIALCHARS";e[1]="HTML_ENTITIES";b[0]="ENT_NOQUOTES";b[2]="ENT_COMPAT";b[3]="ENT_QUOTES";j=!isNaN(i)?e[i]:i?i.toUpperCase():"HTML_SPECIALCHARS";h=!isNaN(g)?b[g]:g?g.toUpperCase():"ENT_COMPAT";if(j!=="HTML_SPECIALCHARS"&&j!=="HTML_ENTITIES"){throw new Error("Table: "+j+" not supported")}d["38"]="&";if(j==="HTML_ENTITIES"){d["160"]=" ";d["161"]="¡";d["162"]="¢";d["163"]="£";d["164"]="¤";d["165"]="¥";d["166"]="¦";d["167"]="§";d["168"]="¨";d["169"]="©";d["170"]="ª";d["171"]="«";d["172"]="¬";d["173"]="­";d["174"]="®";d["175"]="¯";d["176"]="°";d["177"]="±";d["178"]="²";d["179"]="³";d["180"]="´";d["181"]="µ";d["182"]="¶";d["183"]="·";d["184"]="¸";d["185"]="¹";d["186"]="º";d["187"]="»";d["188"]="¼";d["189"]="½";d["190"]="¾";d["191"]="¿";d["192"]="À";d["193"]="Á";d["194"]="Â";d["195"]="Ã";d["196"]="Ä";d["197"]="Å";d["198"]="Æ";d["199"]="Ç";d["200"]="È";d["201"]="É";d["202"]="Ê";d["203"]="Ë";d["204"]="Ì";d["205"]="Í";d["206"]="Î";d["207"]="Ï";d["208"]="Ð";d["209"]="Ñ";d["210"]="Ò";d["211"]="Ó";d["212"]="Ô";d["213"]="Õ";d["214"]="Ö";d["215"]="×";d["216"]="Ø";d["217"]="Ù";d["218"]="Ú";d["219"]="Û";d["220"]="Ü";d["221"]="Ý";d["222"]="Þ";d["223"]="ß";d["224"]="à";d["225"]="á";d["226"]="â";d["227"]="ã";d["228"]="ä";d["229"]="å";d["230"]="æ";d["231"]="ç";d["232"]="è";d["233"]="é";d["234"]="ê";d["235"]="ë";d["236"]="ì";d["237"]="í";d["238"]="î";d["239"]="ï";d["240"]="ð";d["241"]="ñ";d["242"]="ò";d["243"]="ó";d["244"]="ô";d["245"]="õ";d["246"]="ö";d["247"]="÷";d["248"]="ø";d["249"]="ù";d["250"]="ú";d["251"]="û";d["252"]="ü";d["253"]="ý";d["254"]="þ";d["255"]="ÿ"}if(h!=="ENT_NOQUOTES"){d["34"]="""}if(h==="ENT_QUOTES"){d["39"]="'"}d["60"]="<";d["62"]=">";for(c in d){a=String.fromCharCode(c);f[a]=d[c]}return f}function htmlentities(c,f){var e={},d="",a="",b="";a=c.toString();if(false===(e=this.get_html_translation_table("HTML_ENTITIES",f))){return false}e["'"]="'";for(d in e){b=e[d];a=a.split(d).join(b)}return a};