Changeset 53053 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 04/02/2022 01:53:06 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/formatting.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r52821 r53053 375 375 * and pops on tag close. 376 376 * 377 * Assumes first char of $textis tag opening and last char is tag closing.378 * Assumes second char of $text is optionally '/' to indicate closing as in </html>.377 * Assumes first char of `$text` is tag opening and last char is tag closing. 378 * Assumes second char of `$text` is optionally `/` to indicate closing as in `</html>`. 379 379 * 380 380 * @since 2.9.0 … … 430 430 * A group of regex replaces used to identify text formatted with newlines and 431 431 * replace double line breaks with HTML paragraph tags. The remaining line breaks 432 * after conversion become <<br />> tags, unless $bris set to '0' or 'false'.432 * after conversion become `<br />` tags, unless `$br` is set to '0' or 'false'. 433 433 * 434 434 * @since 0.71 … … 910 910 * Converts a number of special characters into their HTML entities. 911 911 * 912 * Specifically deals with: &, <, >, ", and '.913 * 914 * $quote_style can be set to ENT_COMPAT to encode "to915 * ", or ENT_QUOTES to do both. Default is ENT_NOQUOTES where no quotes are encoded.912 * Specifically deals with: `&`, `<`, `>`, `"`, and `'`. 913 * 914 * `$quote_style` can be set to ENT_COMPAT to encode `"` to 915 * `"`, or ENT_QUOTES to do both. Default is ENT_NOQUOTES where no quotes are encoded. 916 916 * 917 917 * @since 1.2.2 … … 995 995 * Converts a number of HTML entities into their special characters. 996 996 * 997 * Specifically deals with: &, <, >, ", and '.998 * 999 * $quote_style can be set to ENT_COMPAT to decode "entities,1000 * or ENT_QUOTES to do both " and '. Default is ENT_NOQUOTES where no quotes are decoded.997 * Specifically deals with: `&`, `<`, `>`, `"`, and `'`. 998 * 999 * `$quote_style` can be set to ENT_COMPAT to decode `"` entities, 1000 * or ENT_QUOTES to do both `"` and `'`. Default is ENT_NOQUOTES where no quotes are decoded. 1001 1001 * 1002 1002 * @since 2.8.0 … … 4511 4511 4512 4512 /** 4513 * Escapes single quotes, htmlspecialchar " < > &, and fixes line endings.4513 * Escapes single quotes, `"`, `<`, `>`, `&`, and fixes line endings. 4514 4514 * 4515 4515 * Escapes text strings for echoing in JS. It is intended to be used for inline JS 4516 * (in a tag attribute, for example onclick="..."). Note that the strings have to4516 * (in a tag attribute, for example `onclick="..."`). Note that the strings have to 4517 4517 * be in single quotes. The {@see 'js_escape'} filter is also applied here. 4518 4518 *
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)