HTML Processing Functions

Removes HTML / PHP Tags. Converts Special Characters to HTML Entities.
  • CONVERT_MARKDOWN_TO_HTML

    Returns valid HTML from Markdown

    CONVERT_MARKDOWN_TO_HTML("Hello _Antify_!")
    Try this example
    text (string)
    Markdown text
  • ESCAPEHTML

    Convert special characters to HTML entities

    ESCAPEHTML("<b>Antify</b>")
    Try this example
    string (string)
    The string being converted.
  • HTMLENTITIES

    Convert all applicable characters to HTML entities

    HTMLENTITIES("A 'quote' is <b>bold</b>")
    Try this example
    string (string)
    The input string.
  • HTMLSPECIALCHARS

    Convert special characters to HTML entities

    HTMLSPECIALCHARS("<a href='test'>Test</a>")
    Try this example
    string (string)
    The string being converted.
  • HTMLSPECIALCHARS_DECODE

    Convert special HTML entities back to characters

    HTMLSPECIALCHARS_DECODE("<p>this -&gt; &quot;</p>\n")
    Try this example
    string (string)
    The string to decode.
  • HTML_ENTITY_DECODE

    Convert HTML entities to their corresponding characters

    HTML_ENTITY_DECODE("I'll \"walk\" the <b>dog</b> now")
    Try this example
    string (string)
    The input string.
  • HTML_TO_TEXT

    Converts HTML to plain text and removes all code

    HTML_TO_TEXT("<b>Hello</b>")
    Try this example
    html (string)
    HTML to convert to plain text
    drop_links (boolean)
    Default: FALSE, Set to TRUE to not render links as [http://foo.com](My Link), but rather just My Link
  • MARKDOWN2HTML

    Returns valid HTML from Markdown

    MARKDOWN2HTML("Hello _Antify_!")
    Try this example
    text (string)
    Markdown text
  • RANDOM_MAC

    Generates random MAC address

    RANDOM_MAC()
    Try this example
  • REMOVE_HTML_TAGS

    Converts HTML to plain text and removes all code

    REMOVE_HTML_TAGS("<b>Hello</b>")
    Try this example
    html (string)
    HTML to convert to plain text
    drop_links (boolean)
    Default: FALSE, Set to TRUE to not render links as [http://foo.com](My Link), but rather just My Link
  • STRIPHTML

    Strip HTML and PHP tags from a string

    STRIPHTML("<p>Test paragraph.</p><!-- Comment --> <a href='#fragment'>Other text</a>")
    Try this example
    str (string)
    The input string.
  • STRIP_TAGS

    Strip HTML and PHP tags from a string

    STRIP_TAGS("<p>Test paragraph.</p><!-- Comment --> <a href='#fragment'>Other text</a>")
    Try this example
    str (string)
    The input string.
    allowable_tags (string)
    Optional: You can use the optional second parameter to specify tags which should not be stripped.