File: wp-includes/formatting.php
-
functionwp_replace_in_html_tags()
Replaces characters or phrases within HTML elements only.
-
functionwp_staticize_emoji()
Converts emoji to a static img element.
-
functionwp_staticize_emoji_for_email()
Converts emoji in emails into static images.
-
functionprint_emoji_detection_script()
Prints the inline Emoji detection script if it is not already printed.
-
hookemoji_url
Filters the URL where emoji png images are hosted.
-
hookemoji_ext
Filters the extension of the emoji png files.
-
functionwp_encode_emoji()
Converts emoji characters to their equivalent HTML entity.
-
functionforce_balance_tags()
Balances tags of string using a modified stack.
-
functionwp_spaces_regexp()
Returns the regexp for common whitespace characters.
-
hookwp_spaces_regexp
Filters the regexp for common whitespace characters.
-
hookhuman_time_diff
Filters the human-readable difference between two timestamps.
-
hookrun_wptexturize
Filters whether to skip running wptexturize().
-
functionurl_shorten()
Shortens a URL, to be used as link text.
-
functionmaybe_hash_hex_color()
Ensures that any hex color is properly hashed.
-
functionsanitize_hex_color()
Sanitizes a hex color.
-
functionsanitize_hex_color_no_hash()
Sanitizes a hex color without a hash. Use sanitize_hex_color() when possible.
-
functioncapital_P_dangit()
Forever eliminate “Wordpress” from the planet (or at least the little bit we can influence).
-
functionsanitize_mime_type()
Sanitizes a mime type
-
functionlinks_add_base_url()
Adds a base URL to relative links in passed content.
-
Filters a mime type following sanitization.
-
function_links_add_base()
Callback to add a base URL to relative links in passed content.
-
functionsanitize_trackback_urls()
Sanitizes space or carriage return separated URLs that are used to send trackbacks.
-
functionlinks_add_target()
Adds a target attribute to all links in passed content.
-
Filters a list of trackback URLs following sanitization.
-
function_links_add_target()
Callback to add a target attribute to all links in passed content.
-
functionwp_slash()
Adds slashes to a string or recursively adds slashes to strings within an array.
-
functionnormalize_whitespace()
Normalizes EOL characters and strips duplicate whitespace.
-
functionwp_unslash()
Removes slashes from a string or recursively removes slashes from strings within an array.
-
functionwp_strip_all_tags()
Properly strips all HTML tags including ‘script’ and ‘style’.
-
functionget_url_in_content()
Extracts and returns the first URL from passed content.