Text-related functions¶
Up to Global Functions
- html_escape — Escape a value to display properly as HTML.
- js_escape — Escape a value for use in javascript.
- snippet — Return a substring of a given piece of text.
- snippet_by_word_count — Return a substring of the text by limiting the word count.
- strip_formatting — Strip HTML tags from a string.
- text_to_id — Convert a word or phrase to a valid HTML ID.
- text_to_paragraphs — Replace newlines in a block of text with paragraph tags.
- url_to_link — Convert any URLs in a given string to links.
- url_to_link_callback — Callback for converting URLs with url_to_link.
- xml_escape — Escape a value for use in XML.