jrobichess (@jrobichess)

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thanks for the quick reply _ck_!

    Here are lines 106 – 119:

    if ( version_compare( PHP_VERSION, ‘5.2.3’, ‘>=’ ) ) {

    $string = htmlentities( $string, $quote_style, $charset, $double_encode );

    } else {

    // Handle double encoding for PHP versions that don’t support it in htmlentities()

    if ( !$double_encode ) {

    // Multi-byte charsets are not supported below PHP 5.0.0

    // ‘cp866’, ‘cp1251’, ‘KOI8-R’ charsets are not supported below PHP 4.3.2

    $string = html_entity_decode( $string, $quote_style, $charset );

    }

    // ‘cp866’, ‘cp1251’, ‘KOI8-R’ charsets are not supported below PHP 4.3.2

    $string = htmlentities( $string, $quote_style, $charset );

    }

    return $string;

Viewing 2 replies - 1 through 2 (of 2 total)