De traductores profesionales, empresas, páginas web y repositorios de traducción de libre uso.
예 5. convert html to text
it will also convert some / / common html entities to their text equivalent. $search = array ("'script[^ ]*? .*? / script'si", / / strip out javascript"' [\ /\ !]* ?[^ ]*? 'si", / / strip out html tags "'([\r\n])[\s]+'", / / strip out white space "'(quot_bar_#34) ;'i", / / replace html entities"' (amp_bar_#38) ;'i", "'(lt_bar_#60) ;'i","' (gt_bar_#62) ;'i", "'(nbsp_bar_#160) ;'i","' (iexcl_bar_#161) ;'i", "'(cent_bar_#162) ;'i","' (pound_bar_#163) ;'i", "'(copy_bar_#169) ;'i","' #(\d+) ;'e"); / / evaluate as php $replace = array ("", "", "\\1", "\"", "", "", "", "", chr(161), chr(162), chr(163), chr(169), "chr(\\1)"); $text = preg_replace ($search, $replace, $document);