File: wp-includes/formatting.php
-
functionwp_enqueue_emoji_styles()
Enqueues the important emoji-related styles.
-
functionsanitize_locale_name()
Strips out all characters not allowed in a locale name.
-
Filters a sanitized locale name string.
-
function_make_clickable_rel_attr()
Helper function used to build the “rel” attribute for a URL when creating an anchor using make_clickable().
-
functionesc_xml()
Escaping for XML blocks.
-
hookesc_xml
Filters a string cleaned and escaped for output in XML.
-
functionwp_pre_kses_block_attributes()
Removes non-allowable HTML from parsed block attribute values when filtering in the post context.
-
Filters the rel value that is added to URL matches converted to links.
-
functionwp_rel_callback()
Callback to add a rel attribute to HTML A element.
-
functionwp_rel_ugc()
Adds `rel=”nofollow ugc”` string to all HTML A elements in content.
-
Adds all filters modifying the rel attribute of targeted links.
-
Removes all filters modifying the rel attribute of targeted links.
-
functionwp_targeted_link_rel()
Adds `rel=”noopener”` to all HTML A elements that have a target.
-
functionwp_targeted_link_rel_callback()
Callback to add `rel=”noopener”` string to HTML A element.
-
Filters the rel values that are added to links with `target` attribute.
-
function_wp_emoji_list()
Returns arrays of emoji data.
-
function_sanitize_text_fields()
Internal helper function to sanitize a string from user input or from the database.
-
Filters a sanitized textarea field string.
-
functionsanitize_textarea_field()
Sanitizes a multiline string from user input or from the database.
-
hookemoji_svg_url
Filters the URL where emoji SVG images are hosted.
-
hookemoji_svg_ext
Filters the extension of the emoji SVG files.
-
functionmap_deep()
Maps a function to all non-iterable elements of an array or an object.
-
functionstripslashes_from_strings_only()
Callback function for `stripslashes_deep()` which strips slashes from strings.
-
functionurldecode_deep()
Navigates through an array, object, or scalar, and decodes URL-encoded values
-
functionget_html_split_regex()
Retrieves the regular expression for an HTML element.
-
functionformat_for_editor()
Formats text for the editor.
-
Filters the text after it is formatted for the editor.
-
functionconvert_invalid_entities()
Converts invalid Unicode references range to valid range.
-
functionwptexturize_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.
-
functionwp_html_split()
Separates HTML elements and comments from the text.