return strtr($str, array_flip(get_html_translation_table())); } function Parse( $str ) { require_once 'sources/classes/Highlighters/highlight_css.php'; $this->css = new highlight_css(); $str = nl2br( $str ); $str = stripslashes( $str ); $str = str_replace( "parse_simple( $str ); $str = str_replace( array( '[nextpage]' ), array( '[newpage]' ), $str ); $str = preg_replace( "#\[url=(.+?)\](.+?)\[\/url\]#se", "\$this->do_parse_url( array( 'url' => '\\1', 'urltext' => '\\2' ) )", $str ); $str = preg_replace( "#\[url\](.+?)\[\/url\]#se", "\$this->do_parse_url( array( 'url' => '\\1', 'urltext' => '\\1' ) )", $str ); $str = preg_replace( "#\[img\](.+?)\[\/img\]#se", "\$this->do_parse_img( array( 'img' => '\\1' ) )", $str );