Making WordPress.org


Ignore:
Timestamp:
02/03/2016 09:44:26 PM (8 years ago)
Author:
coffee2code
Message:

developer.wordpress.org: Prevent double-encoding of HTML entities in parameter descriptions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/formatting.php

    r2430 r2452  
    220220     */
    221221    public static function format_param_description( $text ) {
    222         // Encode all htmlentities.
    223         $text = htmlentities( $text );
     222        // Encode all htmlentities (but don't double-encode).
     223        $text = htmlentities( $text, ENT_COMPAT | ENT_HTML401, 'UTF-8', false );
    224224
    225225        // Simple allowable tags that should get unencoded.
Note: See TracChangeset for help on using the changeset viewer.