WordPress.org

Codex

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

Function Reference/convert chars

Description

Converts a number of characters from a string.

Metadata tags <title> and <category> are removed, <br> and <hr> are converted into correct XHTML and Unicode characters are converted to the valid range.

Usage

<?php convert_chars$content$deprecated ?>

Parameters

$content
(string) (required) String of characters to be converted.
Default: None
$deprecated
(string) (optional) Not used.
Default: ''

Return Values

(string) 
Converted string.

Examples

Notes

Change Log

Since: 0.71

Source File

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

Related

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