Parsed: 119999

<?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. `&amp;`) */

/* 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. */

/* function _split_str_by_whitespace() – Breaks a string into chunks by splitting at whitespace characters. */

/* function wp_rel_callback() – Callback to add a rel attribute to HTML A element. */

/* function wp_rel_nofollow() – Adds `rel="nofollow"` string to all HTML A elements in content. */

/* function wp_rel_nofollow_callback() – Callback to add `rel="nofollow"` string to HTML A element. */

/* function wp_rel_ugc() – Adds `rel="nofollow ugc"` string to all HTML A elements in content. */

/* function wp_targeted_link_rel() – Adds rel noreferrer and noopener to all HTML A elements that have a target. */

/* function wp_targeted_link_rel_callback() – Callback to add `rel="noopener"` string to HTML A element. */

/* function wp_init_targeted_link_rel_filters() – Adds all filters modifying the rel attribute of targeted links. */

/* function wp_remove_targeted_link_rel_filters() – Removes all filters modifying the rel attribute of targeted links. */

/* function translate_smiley() – Convert one smiley code to the icon graphic file equivalent. */

/* function convert_smilies() – Convert text equivalent of smilies to images. */

/* function is_email() – Verifies that an email is valid. */

/* function wp_iso_descrambler() – Convert to ASCII from email subjects. */

/* function _wp_iso_convert() – Helper function to convert hex encoded chars to ASCII */

/* function get_gmt_from_date() – Returns a date in the GMT equivalent. */

/* function get_date_from_gmt() – Converts a GMT date into the correct format for the blog. */

/* function iso8601_timezone_to_offset() – Given an ISO 8601 timezone, returns its UTC offset in seconds. */

/* function iso8601_to_datetime() – Converts an iso8601 (YmdTH:i:sO) date to MySQL DateTime (Y-m-d H:i:s) format used by post_date[_gmt]. */

/* function sanitize_email() – Strips out all characters that are not allowable in an email. */

/* function human_time_diff() – Determines the difference between two timestamps. */

/* function wp_trim_excerpt() – Generates an excerpt from the content, if needed. */

/* function wp_trim_words() – Trims text to a certain number of words. */

/* function ent2ncr() – Converts named entities into numbered entities. */

/* function format_for_editor() – Formats text for the editor. */

/* function _deep_replace() – Perform a deep string replace operation to ensure the values in $search are no longer present */

/* function esc_sql() – Escapes data for use in a MySQL query. */

/* function esc_url() – Checks and cleans a URL. */

/* function esc_url_raw() – Sanitizes a URL for database or redirect usage. */

/* function sanitize_url() – Sanitizes a URL for database or redirect usage. */

/* function htmlentities2() – Convert entities, while preserving already-encoded entities. */

/* function esc_js() – Escape single quotes, htmlspecialchar " < > &, and fix line endings. */

/* function esc_html() – Escaping for HTML blocks. */

/* function esc_attr() – Escaping for HTML attributes. */

/* function esc_textarea() – Escaping for textarea values. */

/* function esc_xml() – Escaping for XML blocks. */

/* function tag_escape() – Escape an HTML tag name. */

/* function wp_make_link_relative() – Convert full URL paths to absolute paths. */

/* function sanitize_option() – Sanitizes various option values based on the nature of the option. */

/* function map_deep() – Maps a function to all non-iterable elements of an array or an object. */

/* function wp_parse_str() – Parses a string into variables to be stored in an array. */

/* function wp_pre_kses_less_than() – Convert lone less than signs. */

/* function wp_pre_kses_less_than_callback() – Callback function used by preg_replace. */

/* function wp_pre_kses_block_attributes() – Remove non-allowable HTML from parsed block attribute values when filtering
in the post context. */

/* function wp_sprintf() – WordPress implementation of PHP sprintf() with filters. */

/* function wp_sprintf_l() – Localize list items before the rest of the content. */

/* function wp_html_excerpt() – Safely extracts not more than the first $count characters from html string. */

/* function links_add_base_url() – Add a Base url to relative links in passed content. */

/* function _links_add_base() – Callback to add a base url to relative links in passed content. */

/* function links_add_target() – Adds a Target attribute to all links in passed content. */

/* function _links_add_target() – Callback to add a target attribute to all links in passed content. */

/* function normalize_whitespace() – Normalize EOL characters and strip duplicate whitespace. */

/* function wp_strip_all_tags() – Properly strip all HTML tags including script and style */

/* function sanitize_text_field() – Sanitizes a string from user input or from the database. */

/* function sanitize_textarea_field() – Sanitizes a multiline string from user input or from the database. */

/* function _sanitize_text_fields() – Internal helper function to sanitize a string from user input or from the db */

/* function wp_basename() – i18n friendly version of basename() */

// phpcs:disable WordPress.WP.CapitalPDangit.Misspelled, WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid -- 8-)
/* function capital_P_dangit() – Forever eliminate "WordPress" from the planet (or at least the little bit we can influence). */
// phpcs:enable

/* function sanitize_mime_type() – Sanitize a mime type */

/* function sanitize_trackback_urls() – Sanitizes space or carriage return separated URLs that are used to send trackbacks. */

/* function wp_slash() – Add slashes to a string or array of strings, in a recursive manner. */

/* function wp_unslash() – Remove slashes from a string or array of strings. */

/* function get_url_in_content() – Extracts and returns the first URL from passed content. */

/* function wp_spaces_regexp() – Returns the regexp for common whitespace characters. */

/* function print_emoji_styles() – Print the important emoji-related styles. */

/* function print_emoji_detection_script() – Print the inline Emoji detection script if it is not already printed. */

/* function _print_emoji_detection_script() – Prints inline Emoji detection script. */

/* function wp_encode_emoji() – Convert emoji characters to their equivalent HTML entity. */

/* function wp_staticize_emoji() – Converts emoji to a static img element. */

/* function wp_staticize_emoji_for_email() – Convert emoji in emails into static images. */

/* function _wp_emoji_list() – Returns arrays of emoji data. */

/* function url_shorten() – Shorten a URL, to be used as link text. */

/* function sanitize_hex_color() – Sanitizes a hex color. */

/* function sanitize_hex_color_no_hash() – Sanitizes a hex color without a hash. Use sanitize_hex_color() when possible. */

/* function maybe_hash_hex_color() – Ensures that any hex color is properly hashed. */