[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/interactivity-api/ -> class-wp-interactivity-dangerous-html.php (summary)

Interactivity API: WP_Interactivity_Dangerous_HTML class.

File Size: 76 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions

  __construct()
  get_html()
  __wakeup()

Functions
Functions that are not part of a class:

__construct( string $html )   X-Ref
Constructor.

param: string $html The HTML to mark as trusted. It is not sanitized.

get_html( $value )   X-Ref
Gets the trusted HTML of a value.

param: mixed $value Any value.
return: string|null The HTML of the token if the value is a token whose constructor

__wakeup()   X-Ref
Makes a token restored by unserialization inert.

Clears the HTML, so the token never renders, and reports the unserialization
instead of throwing, so a page that cached a token keeps working.




Generated : Sat Oct 17 08:20:33 2026 Cross-referenced by PHPXref