沒有JQuery,也沒有需要的DOM。可以慢。:
/**
* By Caio Santos
* [email protected]
* Tabela utilizada:
* http://www.w3schools.com/charsets/ref_html_entities_4.asp
* Acesse game4game.com.br
*/
function html_entity_decode(str){
var replaceAll = function(str, find, replace) {
return str.replace(new RegExp(find, 'g'), replace);
}
str = replaceAll(str,"&","&");
str = replaceAll(str,"<","<");
str = replaceAll(str,">",">");
str = replaceAll(str," "," ");
str = replaceAll(str,"¡","¡");
str = replaceAll(str,"¢","¢");
str = replaceAll(str,"£","£");
str = replaceAll(str,"¤","¤");
str = replaceAll(str,"¥","¥");
str = replaceAll(str,"¦","¦");
str = replaceAll(str,"§","§");
str = replaceAll(str,"¨","¨");
str = replaceAll(str,"©","©");
str = replaceAll(str,"ª","ª");
str = replaceAll(str,"«","«");
str = replaceAll(str,"¬","¬");
str = replaceAll(str,"­","");
str = replaceAll(str,"®","®");
str = replaceAll(str,"¯","¯");
str = replaceAll(str,"°","°");
str = replaceAll(str,"±","±");
str = replaceAll(str,"²","²");
str = replaceAll(str,"³","³");
str = replaceAll(str,"´","´");
str = replaceAll(str,"µ","µ");
str = replaceAll(str,"¶","¶");
str = replaceAll(str,"·","·");
str = replaceAll(str,"¸","¸");
str = replaceAll(str,"¹","¹");
str = replaceAll(str,"º","º");
str = replaceAll(str,"»","»");
str = replaceAll(str,"¼","¼");
str = replaceAll(str,"½","½");
str = replaceAll(str,"¾","¾");
str = replaceAll(str,"¿","¿");
str = replaceAll(str,"À","À");
str = replaceAll(str,"Á","Á");
str = replaceAll(str,"Â","Â");
str = replaceAll(str,"Ã","Ã");
str = replaceAll(str,"Ä","Ä");
str = replaceAll(str,"Å","Å");
str = replaceAll(str,"Æ","Æ");
str = replaceAll(str,"Ç","Ç");
str = replaceAll(str,"È","È");
str = replaceAll(str,"É","É");
str = replaceAll(str,"Ê","Ê");
str = replaceAll(str,"Ë","Ë");
str = replaceAll(str,"Ì","Ì");
str = replaceAll(str,"Í","Í");
str = replaceAll(str,"Î","Î");
str = replaceAll(str,"Ï","Ï");
str = replaceAll(str,"Ð","Ð");
str = replaceAll(str,"Ñ","Ñ");
str = replaceAll(str,"Ò","Ò");
str = replaceAll(str,"Ó","Ó");
str = replaceAll(str,"Ô","Ô");
str = replaceAll(str,"Õ","Õ");
str = replaceAll(str,"Ö","Ö");
str = replaceAll(str,"×","×");
str = replaceAll(str,"Ø","Ø");
str = replaceAll(str,"Ù","Ù");
str = replaceAll(str,"Ú","Ú");
str = replaceAll(str,"Û","Û");
str = replaceAll(str,"Ü","Ü");
str = replaceAll(str,"Ý","Ý");
str = replaceAll(str,"Þ","Þ");
str = replaceAll(str,"ß","ß");
str = replaceAll(str,"à","à");
str = replaceAll(str,"á","á");
str = replaceAll(str,"â","â");
str = replaceAll(str,"ã","ã");
str = replaceAll(str,"ä","ä");
str = replaceAll(str,"å","å");
str = replaceAll(str,"æ","æ");
str = replaceAll(str,"ç","ç");
str = replaceAll(str,"è","è");
str = replaceAll(str,"é","é");
str = replaceAll(str,"ê","ê");
str = replaceAll(str,"ë","ë");
str = replaceAll(str,"ì","ì");
str = replaceAll(str,"í","í");
str = replaceAll(str,"î","î");
str = replaceAll(str,"ï","ï");
str = replaceAll(str,"ð","ð");
str = replaceAll(str,"ñ","ñ");
str = replaceAll(str,"ò","ò");
str = replaceAll(str,"ó","ó");
str = replaceAll(str,"ô","ô");
str = replaceAll(str,"õ","õ");
str = replaceAll(str,"ö","ö");
str = replaceAll(str,"÷","÷");
str = replaceAll(str,"ø","ø");
str = replaceAll(str,"ù","ù");
str = replaceAll(str,"ú","ú");
str = replaceAll(str,"û","û");
str = replaceAll(str,"ü","ü");
str = replaceAll(str,"ý","ý");
str = replaceAll(str,"þ","þ");
str = replaceAll(str,"ÿ","ÿ");
str = replaceAll(str,"ƒ","ƒ");
str = replaceAll(str,"Α","?");
str = replaceAll(str,"Β","?");
str = replaceAll(str,"Γ","G");
str = replaceAll(str,"Δ","?");
str = replaceAll(str,"Ε","?");
str = replaceAll(str,"Ζ","?");
str = replaceAll(str,"Η","?");
str = replaceAll(str,"Θ","T");
str = replaceAll(str,"Ι","?");
str = replaceAll(str,"Κ","?");
str = replaceAll(str,"Λ","?");
str = replaceAll(str,"Μ","?");
str = replaceAll(str,"Ν","?");
str = replaceAll(str,"Ξ","?");
str = replaceAll(str,"Ο","?");
str = replaceAll(str,"Π","?");
str = replaceAll(str,"Ρ","?");
str = replaceAll(str,"Σ","S");
str = replaceAll(str,"Τ","?");
str = replaceAll(str,"Υ","?");
str = replaceAll(str,"Φ","F");
str = replaceAll(str,"Χ","?");
str = replaceAll(str,"Ψ","?");
str = replaceAll(str,"Ω","O");
str = replaceAll(str,"α","a");
str = replaceAll(str,"β","ß");
str = replaceAll(str,"γ","?");
str = replaceAll(str,"δ","d");
str = replaceAll(str,"ε","e");
str = replaceAll(str,"ζ","?");
str = replaceAll(str,"η","?");
str = replaceAll(str,"θ","?");
str = replaceAll(str,"ι","?");
str = replaceAll(str,"κ","?");
str = replaceAll(str,"λ","?");
str = replaceAll(str,"μ","µ");
str = replaceAll(str,"ν","?");
str = replaceAll(str,"ξ","?");
str = replaceAll(str,"ο","?");
str = replaceAll(str,"π","p");
str = replaceAll(str,"ρ","?");
str = replaceAll(str,"ς","?");
str = replaceAll(str,"σ","s");
str = replaceAll(str,"τ","t");
str = replaceAll(str,"υ","?");
str = replaceAll(str,"φ","f");
str = replaceAll(str,"χ","?");
str = replaceAll(str,"ψ","?");
str = replaceAll(str,"ω","?");
str = replaceAll(str,"ϑ","?");
str = replaceAll(str,"ϒ","?");
str = replaceAll(str,"ϖ","?");
str = replaceAll(str,"•","•");
str = replaceAll(str,"…","…");
str = replaceAll(str,"′","'");
str = replaceAll(str,"″","?");
str = replaceAll(str,"‾","?");
str = replaceAll(str,"⁄","/");
str = replaceAll(str,"℘","P");
str = replaceAll(str,"ℑ","I");
str = replaceAll(str,"ℜ","R");
str = replaceAll(str,"™","™");
str = replaceAll(str,"ℵ","?");
str = replaceAll(str,"←","?");
str = replaceAll(str,"↑","?");
str = replaceAll(str,"→","?");
str = replaceAll(str,"↓","?");
str = replaceAll(str,"↔","?");
str = replaceAll(str,"↵","?");
str = replaceAll(str,"⇐","?");
str = replaceAll(str,"⇑","?");
str = replaceAll(str,"⇒","?");
str = replaceAll(str,"⇓","?");
str = replaceAll(str,"⇔","?");
str = replaceAll(str,"∀","?");
str = replaceAll(str,"∂","?");
str = replaceAll(str,"∃","?");
str = replaceAll(str,"∅","Ø");
str = replaceAll(str,"∇","?");
str = replaceAll(str,"∈","?");
str = replaceAll(str,"∉","?");
str = replaceAll(str,"∋","?");
str = replaceAll(str,"∏","?");
str = replaceAll(str,"∑","?");
str = replaceAll(str,"−","-");
str = replaceAll(str,"∗","*");
str = replaceAll(str,"√","v");
str = replaceAll(str,"∝","?");
str = replaceAll(str,"∞","8");
str = replaceAll(str,"∠","?");
str = replaceAll(str,"∧","?");
str = replaceAll(str,"∨","?");
str = replaceAll(str,"∩","n");
str = replaceAll(str,"∪","?");
str = replaceAll(str,"∫","?");
str = replaceAll(str,"∴","?");
str = replaceAll(str,"∼","~");
str = replaceAll(str,"≅","?");
str = replaceAll(str,"≈","˜");
str = replaceAll(str,"≠","?");
str = replaceAll(str,"≡","=");
str = replaceAll(str,"≤","=");
str = replaceAll(str,"≥","=");
str = replaceAll(str,"⊂","?");
str = replaceAll(str,"⊃","?");
str = replaceAll(str,"⊄","?");
str = replaceAll(str,"⊆","?");
str = replaceAll(str,"⊇","?");
str = replaceAll(str,"⊕","?");
str = replaceAll(str,"⊗","?");
str = replaceAll(str,"⊥","?");
str = replaceAll(str,"⋅","·");
str = replaceAll(str,"⌈","?");
str = replaceAll(str,"⌉","?");
str = replaceAll(str,"⌊","?");
str = replaceAll(str,"⌋","?");
str = replaceAll(str,"⟨","<");
str = replaceAll(str,"⟩",">");
str = replaceAll(str,"◊","?");
str = replaceAll(str,"♠","?");
str = replaceAll(str,"♣","?");
str = replaceAll(str,"♥","?");
str = replaceAll(str,"♦","?");
str = replaceAll(str,"&","&");
str = replaceAll(str,"<","<");
str = replaceAll(str,">",">");
str = replaceAll(str," "," ");
str = replaceAll(str,"¡","¡");
str = replaceAll(str,"¢","¢");
str = replaceAll(str,"£","£");
str = replaceAll(str,"¤","¤");
str = replaceAll(str,"¥","¥");
str = replaceAll(str,"¦","¦");
str = replaceAll(str,"§","§");
str = replaceAll(str,"¨","¨");
str = replaceAll(str,"©","©");
str = replaceAll(str,"ª","ª");
str = replaceAll(str,"«","«");
str = replaceAll(str,"¬","¬");
str = replaceAll(str,"­","");
str = replaceAll(str,"®","®");
str = replaceAll(str,"¯","¯");
str = replaceAll(str,"°","°");
str = replaceAll(str,"±","±");
str = replaceAll(str,"²","²");
str = replaceAll(str,"³","³");
str = replaceAll(str,"´","´");
str = replaceAll(str,"µ","µ");
str = replaceAll(str,"¶","¶");
str = replaceAll(str,"·","·");
str = replaceAll(str,"¸","¸");
str = replaceAll(str,"¹","¹");
str = replaceAll(str,"º","º");
str = replaceAll(str,"»","»");
str = replaceAll(str,"¼","¼");
str = replaceAll(str,"½","½");
str = replaceAll(str,"¾","¾");
str = replaceAll(str,"¿","¿");
str = replaceAll(str,"À","À");
str = replaceAll(str,"Á","Á");
str = replaceAll(str,"Â","Â");
str = replaceAll(str,"Ã","Ã");
str = replaceAll(str,"Ä","Ä");
str = replaceAll(str,"Å","Å");
str = replaceAll(str,"Æ","Æ");
str = replaceAll(str,"Ç","Ç");
str = replaceAll(str,"È","È");
str = replaceAll(str,"É","É");
str = replaceAll(str,"Ê","Ê");
str = replaceAll(str,"Ë","Ë");
str = replaceAll(str,"Ì","Ì");
str = replaceAll(str,"Í","Í");
str = replaceAll(str,"Î","Î");
str = replaceAll(str,"Ï","Ï");
str = replaceAll(str,"Ð","Ð");
str = replaceAll(str,"Ñ","Ñ");
str = replaceAll(str,"Ò","Ò");
str = replaceAll(str,"Ó","Ó");
str = replaceAll(str,"Ô","Ô");
str = replaceAll(str,"Õ","Õ");
str = replaceAll(str,"Ö","Ö");
str = replaceAll(str,"×","×");
str = replaceAll(str,"Ø","Ø");
str = replaceAll(str,"Ù","Ù");
str = replaceAll(str,"Ú","Ú");
str = replaceAll(str,"Û","Û");
str = replaceAll(str,"Ü","Ü");
str = replaceAll(str,"Ý","Ý");
str = replaceAll(str,"Þ","Þ");
str = replaceAll(str,"ß","ß");
str = replaceAll(str,"à","à");
str = replaceAll(str,"á","á");
str = replaceAll(str,"â","â");
str = replaceAll(str,"ã","ã");
str = replaceAll(str,"ä","ä");
str = replaceAll(str,"å","å");
str = replaceAll(str,"æ","æ");
str = replaceAll(str,"ç","ç");
str = replaceAll(str,"è","è");
str = replaceAll(str,"é","é");
str = replaceAll(str,"ê","ê");
str = replaceAll(str,"ë","ë");
str = replaceAll(str,"ì","ì");
str = replaceAll(str,"í","í");
str = replaceAll(str,"î","î");
str = replaceAll(str,"ï","ï");
str = replaceAll(str,"ð","ð");
str = replaceAll(str,"ñ","ñ");
str = replaceAll(str,"ò","ò");
str = replaceAll(str,"ó","ó");
str = replaceAll(str,"ô","ô");
str = replaceAll(str,"õ","õ");
str = replaceAll(str,"ö","ö");
str = replaceAll(str,"÷","÷");
str = replaceAll(str,"ø","ø");
str = replaceAll(str,"ù","ù");
str = replaceAll(str,"ú","ú");
str = replaceAll(str,"û","û");
str = replaceAll(str,"ü","ü");
str = replaceAll(str,"ý","ý");
str = replaceAll(str,"þ","þ");
str = replaceAll(str,"ÿ","ÿ");
str = replaceAll(str,"ƒ","ƒ");
str = replaceAll(str,"Α","?");
str = replaceAll(str,"Β","?");
str = replaceAll(str,"Γ","G");
str = replaceAll(str,"Δ","?");
str = replaceAll(str,"Ε","?");
str = replaceAll(str,"Ζ","?");
str = replaceAll(str,"Η","?");
str = replaceAll(str,"Θ","T");
str = replaceAll(str,"Ι","?");
str = replaceAll(str,"Κ","?");
str = replaceAll(str,"Λ","?");
str = replaceAll(str,"Μ","?");
str = replaceAll(str,"Ν","?");
str = replaceAll(str,"Ξ","?");
str = replaceAll(str,"Ο","?");
str = replaceAll(str,"Π","?");
str = replaceAll(str,"Ρ","?");
str = replaceAll(str,"Σ","S");
str = replaceAll(str,"Τ","?");
str = replaceAll(str,"Υ","?");
str = replaceAll(str,"Φ","F");
str = replaceAll(str,"Χ","?");
str = replaceAll(str,"Ψ","?");
str = replaceAll(str,"Ω","O");
str = replaceAll(str,"α","a");
str = replaceAll(str,"β","ß");
str = replaceAll(str,"γ","?");
str = replaceAll(str,"δ","d");
str = replaceAll(str,"ε","e");
str = replaceAll(str,"ζ","?");
str = replaceAll(str,"η","?");
str = replaceAll(str,"θ","?");
str = replaceAll(str,"ι","?");
str = replaceAll(str,"κ","?");
str = replaceAll(str,"λ","?");
str = replaceAll(str,"μ","µ");
str = replaceAll(str,"ν","?");
str = replaceAll(str,"ξ","?");
str = replaceAll(str,"ο","?");
str = replaceAll(str,"π","p");
str = replaceAll(str,"ρ","?");
str = replaceAll(str,"ς","?");
str = replaceAll(str,"σ","s");
str = replaceAll(str,"τ","t");
str = replaceAll(str,"υ","?");
str = replaceAll(str,"φ","f");
str = replaceAll(str,"χ","?");
str = replaceAll(str,"ψ","?");
str = replaceAll(str,"ω","?");
str = replaceAll(str,"ϑ","?");
str = replaceAll(str,"ϒ","?");
str = replaceAll(str,"ϖ","?");
str = replaceAll(str,"•","•");
str = replaceAll(str,"…","…");
str = replaceAll(str,"′","'");
str = replaceAll(str,"″","?");
str = replaceAll(str,"‾","?");
str = replaceAll(str,"⁄","/");
str = replaceAll(str,"℘","P");
str = replaceAll(str,"ℑ","I");
str = replaceAll(str,"ℜ","R");
str = replaceAll(str,"™","™");
str = replaceAll(str,"ℵ","?");
str = replaceAll(str,"←","?");
str = replaceAll(str,"↑","?");
str = replaceAll(str,"→","?");
str = replaceAll(str,"↓","?");
str = replaceAll(str,"↔","?");
str = replaceAll(str,"↵","?");
str = replaceAll(str,"⇐","?");
str = replaceAll(str,"⇑","?");
str = replaceAll(str,"⇒","?");
str = replaceAll(str,"⇓","?");
str = replaceAll(str,"⇔","?");
str = replaceAll(str,"∀","?");
str = replaceAll(str,"∂","?");
str = replaceAll(str,"∃","?");
str = replaceAll(str,"∅","Ø");
str = replaceAll(str,"∇","?");
str = replaceAll(str,"∈","?");
str = replaceAll(str,"∉","?");
str = replaceAll(str,"∋","?");
str = replaceAll(str,"∏","?");
str = replaceAll(str,"∑","?");
str = replaceAll(str,"−","-");
str = replaceAll(str,"∗","*");
str = replaceAll(str,"√","v");
str = replaceAll(str,"∝","?");
str = replaceAll(str,"∞","8");
str = replaceAll(str,"∠","?");
str = replaceAll(str,"∧","?");
str = replaceAll(str,"∨","?");
str = replaceAll(str,"∩","n");
str = replaceAll(str,"∪","?");
str = replaceAll(str,"∫","?");
str = replaceAll(str,"∴","?");
str = replaceAll(str,"∼","~");
str = replaceAll(str,"≅","?");
str = replaceAll(str,"≈","˜");
str = replaceAll(str,"≠","?");
str = replaceAll(str,"≡","=");
str = replaceAll(str,"≤","=");
str = replaceAll(str,"≥","=");
str = replaceAll(str,"⊂","?");
str = replaceAll(str,"⊃","?");
str = replaceAll(str,"⊄","?");
str = replaceAll(str,"⊆","?");
str = replaceAll(str,"⊇","?");
str = replaceAll(str,"⊕","?");
str = replaceAll(str,"⊗","?");
str = replaceAll(str,"⊥","?");
str = replaceAll(str,"⋅","·");
str = replaceAll(str,"⌈","?");
str = replaceAll(str,"⌉","?");
str = replaceAll(str,"⌊","?");
str = replaceAll(str,"⌋","?");
str = replaceAll(str,"〈","<");
str = replaceAll(str,"〉",">");
str = replaceAll(str,"◊","?");
str = replaceAll(str,"♠","?");
str = replaceAll(str,"♣","?");
str = replaceAll(str,"♥","?");
str = replaceAll(str,"♦","?");
str = replaceAll(str,"&","&");
str = replaceAll(str,"<","<");
str = replaceAll(str,">",">");
str = replaceAll(str," "," ");
str = replaceAll(str,"¡","¡");
str = replaceAll(str,"¢","¢");
str = replaceAll(str,"£","£");
str = replaceAll(str,"¤","¤");
str = replaceAll(str,"¥","¥");
str = replaceAll(str,"¦","¦");
str = replaceAll(str,"§","§");
str = replaceAll(str,"¨","¨");
str = replaceAll(str,"©","©");
str = replaceAll(str,"ª","ª");
str = replaceAll(str,"«","«");
str = replaceAll(str,"¬","¬");
str = replaceAll(str,"­","");
str = replaceAll(str,"®","®");
str = replaceAll(str,"¯","¯");
str = replaceAll(str,"°","°");
str = replaceAll(str,"±","±");
str = replaceAll(str,"²","²");
str = replaceAll(str,"³","³");
str = replaceAll(str,"´","´");
str = replaceAll(str,"µ","µ");
str = replaceAll(str,"¶","¶");
str = replaceAll(str,"·","·");
str = replaceAll(str,"¸","¸");
str = replaceAll(str,"¹","¹");
str = replaceAll(str,"º","º");
str = replaceAll(str,"»","»");
str = replaceAll(str,"¼","¼");
str = replaceAll(str,"½","½");
str = replaceAll(str,"¾","¾");
str = replaceAll(str,"¿","¿");
str = replaceAll(str,"À","À");
str = replaceAll(str,"Á","Á");
str = replaceAll(str,"Â","Â");
str = replaceAll(str,"Ã","Ã");
str = replaceAll(str,"Ä","Ä");
str = replaceAll(str,"Å","Å");
str = replaceAll(str,"Æ","Æ");
str = replaceAll(str,"Ç","Ç");
str = replaceAll(str,"È","È");
str = replaceAll(str,"É","É");
str = replaceAll(str,"Ê","Ê");
str = replaceAll(str,"Ë","Ë");
str = replaceAll(str,"Ì","Ì");
str = replaceAll(str,"Í","Í");
str = replaceAll(str,"Î","Î");
str = replaceAll(str,"Ï","Ï");
str = replaceAll(str,"Ð","Ð");
str = replaceAll(str,"Ñ","Ñ");
str = replaceAll(str,"Ò","Ò");
str = replaceAll(str,"Ó","Ó");
str = replaceAll(str,"Ô","Ô");
str = replaceAll(str,"Õ","Õ");
str = replaceAll(str,"Ö","Ö");
str = replaceAll(str,"×","×");
str = replaceAll(str,"Ø","Ø");
str = replaceAll(str,"Ù","Ù");
str = replaceAll(str,"Ú","Ú");
str = replaceAll(str,"Û","Û");
str = replaceAll(str,"Ü","Ü");
str = replaceAll(str,"Ý","Ý");
str = replaceAll(str,"Þ","Þ");
str = replaceAll(str,"ß","ß");
str = replaceAll(str,"à","à");
str = replaceAll(str,"á","á");
str = replaceAll(str,"â","â");
str = replaceAll(str,"ã","ã");
str = replaceAll(str,"ä","ä");
str = replaceAll(str,"å","å");
str = replaceAll(str,"æ","æ");
str = replaceAll(str,"ç","ç");
str = replaceAll(str,"è","è");
str = replaceAll(str,"é","é");
str = replaceAll(str,"ê","ê");
str = replaceAll(str,"ë","ë");
str = replaceAll(str,"ì","ì");
str = replaceAll(str,"í","í");
str = replaceAll(str,"î","î");
str = replaceAll(str,"ï","ï");
str = replaceAll(str,"ð","ð");
str = replaceAll(str,"ñ","ñ");
str = replaceAll(str,"ò","ò");
str = replaceAll(str,"ó","ó");
str = replaceAll(str,"ô","ô");
str = replaceAll(str,"õ","õ");
str = replaceAll(str,"ö","ö");
str = replaceAll(str,"÷","÷");
str = replaceAll(str,"ø","ø");
str = replaceAll(str,"ù","ù");
str = replaceAll(str,"ú","ú");
str = replaceAll(str,"û","û");
str = replaceAll(str,"ü","ü");
str = replaceAll(str,"ý","ý");
str = replaceAll(str,"þ","þ");
str = replaceAll(str,"ÿ","ÿ");
str = replaceAll(str,"ƒ","ƒ");
str = replaceAll(str,"Α","?");
str = replaceAll(str,"Β","?");
str = replaceAll(str,"Γ","G");
str = replaceAll(str,"Δ","?");
str = replaceAll(str,"Ε","?");
str = replaceAll(str,"Ζ","?");
str = replaceAll(str,"Η","?");
str = replaceAll(str,"Θ","T");
str = replaceAll(str,"Ι","?");
str = replaceAll(str,"Κ","?");
str = replaceAll(str,"Λ","?");
str = replaceAll(str,"Μ","?");
str = replaceAll(str,"Ν","?");
str = replaceAll(str,"Ξ","?");
str = replaceAll(str,"Ο","?");
str = replaceAll(str,"Π","?");
str = replaceAll(str,"Ρ","?");
str = replaceAll(str,"Σ","S");
str = replaceAll(str,"Τ","?");
str = replaceAll(str,"Υ","?");
str = replaceAll(str,"Φ","F");
str = replaceAll(str,"Χ","?");
str = replaceAll(str,"Ψ","?");
str = replaceAll(str,"Ω","O");
str = replaceAll(str,"α","a");
str = replaceAll(str,"β","ß");
str = replaceAll(str,"γ","?");
str = replaceAll(str,"δ","d");
str = replaceAll(str,"ε","e");
str = replaceAll(str,"ζ","?");
str = replaceAll(str,"η","?");
str = replaceAll(str,"θ","?");
str = replaceAll(str,"ι","?");
str = replaceAll(str,"κ","?");
str = replaceAll(str,"λ","?");
str = replaceAll(str,"μ","µ");
str = replaceAll(str,"ν","?");
str = replaceAll(str,"ξ","?");
str = replaceAll(str,"ο","?");
str = replaceAll(str,"π","p");
str = replaceAll(str,"ρ","?");
str = replaceAll(str,"ς","?");
str = replaceAll(str,"σ","s");
str = replaceAll(str,"τ","t");
str = replaceAll(str,"υ","?");
str = replaceAll(str,"φ","f");
str = replaceAll(str,"χ","?");
str = replaceAll(str,"ψ","?");
str = replaceAll(str,"ω","?");
str = replaceAll(str,"ϑ","?");
str = replaceAll(str,"ϒ","?");
str = replaceAll(str,"ϖ","?");
str = replaceAll(str,"•","•");
str = replaceAll(str,"…","…");
str = replaceAll(str,"′","'");
str = replaceAll(str,"″","?");
str = replaceAll(str,"‾","?");
str = replaceAll(str,"⁄","/");
str = replaceAll(str,"℘","P");
str = replaceAll(str,"ℑ","I");
str = replaceAll(str,"ℜ","R");
str = replaceAll(str,"™","™");
str = replaceAll(str,"ℵ","?");
str = replaceAll(str,"←","?");
str = replaceAll(str,"↑","?");
str = replaceAll(str,"→","?");
str = replaceAll(str,"↓","?");
str = replaceAll(str,"↔","?");
str = replaceAll(str,"↵","?");
str = replaceAll(str,"⇐","?");
str = replaceAll(str,"⇑","?");
str = replaceAll(str,"⇒","?");
str = replaceAll(str,"⇓","?");
str = replaceAll(str,"⇔","?");
str = replaceAll(str,"∀","?");
str = replaceAll(str,"∂","?");
str = replaceAll(str,"∃","?");
str = replaceAll(str,"∅","Ø");
str = replaceAll(str,"∇","?");
str = replaceAll(str,"∈","?");
str = replaceAll(str,"∉","?");
str = replaceAll(str,"∋","?");
str = replaceAll(str,"∏","?");
str = replaceAll(str,"∑","?");
str = replaceAll(str,"−","-");
str = replaceAll(str,"∗","*");
str = replaceAll(str,"√","v");
str = replaceAll(str,"∝","?");
str = replaceAll(str,"∞","8");
str = replaceAll(str,"∠","?");
str = replaceAll(str,"∧","?");
str = replaceAll(str,"∨","?");
str = replaceAll(str,"∩","n");
str = replaceAll(str,"∪","?");
str = replaceAll(str,"∫","?");
str = replaceAll(str,"∴","?");
str = replaceAll(str,"∼","~");
str = replaceAll(str,"≅","?");
str = replaceAll(str,"≈","˜");
str = replaceAll(str,"≠","?");
str = replaceAll(str,"≡","=");
str = replaceAll(str,"≤","=");
str = replaceAll(str,"≥","=");
str = replaceAll(str,"⊂","?");
str = replaceAll(str,"⊃","?");
str = replaceAll(str,"⊄","?");
str = replaceAll(str,"⊆","?");
str = replaceAll(str,"⊇","?");
str = replaceAll(str,"⊕","?");
str = replaceAll(str,"⊗","?");
str = replaceAll(str,"⊥","?");
str = replaceAll(str,"⋅","·");
str = replaceAll(str,"⌈","?");
str = replaceAll(str,"⌉","?");
str = replaceAll(str,"⌊","?");
str = replaceAll(str,"⌋","?");
str = replaceAll(str,"〈","<");
str = replaceAll(str,"〉",">");
str = replaceAll(str,"◊","?");
str = replaceAll(str,"♠","?");
str = replaceAll(str,"♣","?");
str = replaceAll(str,"♥","?");
str = replaceAll(str,"♦","?");
return str;
}
什麼是`lb_l_ret`? – Blender 2011-12-13 23:32:44
我不知道你是如何精確調用它的,但我添加了一個lb_l_ret的例子。它基本上包含在JavaScript中的選項。 – 2011-12-13 23:41:52