WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/htmlentities2

Description

Convert entities, while preserving already-encoded entities.

Usage

<?php htmlentities2$myHTML ?>

Parameters

$myHTML
(string) (required) The text to be converted.
Default: None

Return Values

(string) 
Converted text.

Examples

Notes

Change Log

Since: 1.2.2

Source File

htmlentities2() is located in wp-includes/formatting.php.

Related

See also index of Function Reference and index of Template Tags.