Make WordPress Core


Ignore:
Timestamp:
06/22/2026 07:38:52 PM (3 months ago)
Author:
jonsurrell
Message:

HTML API: Ensure correct serialization of XMP contents.

The xmp element is parsed with the generic raw text element parsing algorithm, so its text content must be appended literally when serializing rather than escaped with HTML character references.

Developed in https://github.com/WordPress/wordpress-develop/pull/12193.

Props jonsurrell.
See #65372.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/html-api/class-wp-html-processor.php

    r62507 r62542  
    15061506                                case 'SCRIPT':
    15071507                                case 'STYLE':
     1508                                case 'XMP':
    15081509                                        break;
    15091510
Note: See TracChangeset for help on using the changeset viewer.