wp-includes/formatting.php
Lines:
1 to 100 of 253
<?php /** * Main WordPress Formatting API. * * Handles many functions for formatting output. * * @package WordPress */ /* function wptexturize() – Replaces common plain text characters with formatted entities. */ /* function wptexturize_primes() – Implements a logic tree to determine whether or not "7′." represents seven feet, then converts the special char into either a prime char or a closing quote char. */ /* function _wptexturize_pushpop_element() – Search for disabled element tags. Push element to stack on tag open and pop on tag close. */ /* function wpautop() – Replaces double line breaks with paragraph elements. */ /* function wp_html_split() – Separate HTML elements and comments from the text. */ /* function get_html_split_regex() – Retrieve the regular expression for an HTML element. */ /* function _get_wptexturize_split_regex() – Retrieve the combined regular expression for HTML and shortcodes. */ /* function _get_wptexturize_shortcode_regex() – Retrieve the regular expression for shortcodes. */ /* function wp_replace_in_html_tags() – Replace characters or phrases within HTML elements only. */ /* function _autop_newline_preservation_helper() – Newline preservation help function for wpautop */ /* function shortcode_unautop() – Don’t auto-p wrap shortcodes that stand alone. */ /* function seems_utf8() – Checks to see if a string is utf8 encoded. */ /* function _wp_specialchars() – Converts a number of special characters into their HTML entities. */ /* function wp_specialchars_decode() – Converts a number of HTML entities into their special characters. */ /* function wp_check_invalid_utf8() – Checks for invalid UTF8 in a string. */ /* function utf8_uri_encode() – Encode the Unicode values to be used in the URI. */ /* function remove_accents() – Converts all accent characters to ASCII characters. */ /* function sanitize_file_name() – Sanitizes a filename, replacing whitespace with dashes. */ /* function sanitize_user() – Sanitizes a username, stripping out unsafe characters. */ /* function sanitize_key() – Sanitizes a string key. */ /* function sanitize_title() – Sanitizes a string into a slug, which can be used in URLs or HTML attributes. */ /* function sanitize_title_for_query() – Sanitizes a title with the ‘query’ context. */ /* function sanitize_title_with_dashes() – Sanitizes a title, replacing whitespace and a few other characters with dashes. */ /* function sanitize_sql_orderby() – Ensures a string is a valid SQL ‘order by’ clause. */ /* function sanitize_html_class() – Sanitizes an HTML classname to ensure it only contains valid characters. */ /* function convert_chars() – Converts lone & characters into `&` (a.k.a. `&`) */ /* function convert_invalid_entities() – Converts invalid Unicode references range to valid range. */ /* function balanceTags() – Balances tags if forced to, or if the ‘use_balanceTags’ option is set to true. */ /* function force_balance_tags() – Balances tags of string using a modified stack. */ /* function format_to_edit() – Acts on text which is about to be edited. */ /* function zeroise() – Add leading zeros when necessary. */ /* function backslashit() – Adds backslashes before letters and before a number at the start of a string. */ /* function trailingslashit() – Appends a trailing slash. */ /* function untrailingslashit() – Removes trailing forward slashes and backslashes if they exist. */ /* function addslashes_gpc() – Adds slashes to escape strings. */ /* function stripslashes_deep() – Navigates through an array, object, or scalar, and removes slashes from the values. */ /* function stripslashes_from_strings_only() – Callback function for `stripslashes_deep()` which strips slashes from strings. */ /* function urlencode_deep() – Navigates through an array, object, or scalar, and encodes the values to be used in a URL. */ /* function rawurlencode_deep() – Navigates through an array, object, or scalar, and raw-encodes the values to be used in a URL. */ /* function urldecode_deep() – Navigates through an array, object, or scalar, and decodes URL-encoded values */ /* function antispambot() – Converts email addresses characters to HTML entities to block spam bots. */ /* function _make_url_clickable_cb() – Callback to convert URI match to HTML A element. */ /* function _make_web_ftp_clickable_cb() – Callback to convert URL match to HTML A element. */ /* function _make_email_clickable_cb() – Callback to convert email address match to HTML A element. */ /* function make_clickable() – Convert plaintext URI to HTML links. */