$safe_str = isset($_REQUEST['safe_str']) ? $_REQUEST['safe_str'] : ''; $nbsp_to_space = isset($_REQUEST['nbsp_to_space']) ? $_REQUEST['nbsp_to_space'] : ''; $ent_parse = isset($_REQUEST['ent_parse']) ? $_REQUEST['ent_parse'] : ''; $ent_amp = isset($_REQUEST['ent_amp']) ? $_REQUEST['ent_amp'] : ''; $ent_single_quotes = isset($_REQUEST['ent_single_quotes']) ? $_REQUEST['ent_single_quotes'] : ''; $ent_double_quotes = isset($_REQUEST['ent_double_quotes']) ? $_REQUEST['ent_double_quotes'] : ''; $ent_lt_gt = isset($_REQUEST['ent_lt_gt']) ? $_REQUEST['ent_lt_gt'] : ''; $ent_hyphenminus = isset($_REQUEST['ent_hyphenminus']) ? $_REQUEST['ent_hyphenminus'] : ''; $p = ''; if (!empty($source)) { $p = $source; if (!empty($ent_parse)) { if (!isset($Typography) || empty($Typography)) { $Typography = new Typography(); } $p = $Typography->parse($p); if (!isset($Entities) || empty($Entities)) { $Entities = new Entities(); } $p = $Entities->ipa_text_to_dec_ents($p); //$p = $Entities->text_digits_to_dec_ents($p); $p = $Entities->text_symbs_to_dec_ents($p); $p = $Entities->named_symbs_to_dec_ents($p); //$p = $Entities->latin_text_chars_to_dec_ents($p); $p = $Entities->acc_text_to_dec_ents($p); $p = $Entities->acc_named_to_dec_ents($p); //$p = $Entities->cyr_text_chars_to_dec_ents($p); $p = $Entities->cyr_named_chars_to_dec_ents($p); $p = $Entities->hex_ents_to_dec_ents($p); } $p = str_replace("&", "&", $p);