BBCode::UnHTMLEncode( $string )
Description
Source
File: bp-forums/admin/parser.php
1405 1406 1407 1408 1409 1410 1411 1412 1413 | function UnHTMLEncode( $string ) { if (function_exists( "html_entity_decode" )) return html_entity_decode( $string ); $string = preg_replace_callback( '~&#x([0-9a-f]+);~i' , array ( $this , '_UnHTMLEncode_chr_callback' ), $string ); $string = preg_replace_callback( '~&#([0-9]+);~' , array ( $this , '_UnHTMLEncode_chr_hexdec_callback' ), $string ); $trans_tbl = get_html_translation_table(HTML_ENTITIES); $trans_tbl = array_flip ( $trans_tbl ); return strtr ( $string , $trans_tbl ); } |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.