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 exampletext (string)Markdown text - ESCAPEHTML
Convert special characters to HTML entities
ESCAPEHTML("<b>Antify</b>")Try this examplestring (string)The string being converted. - HTML_ENTITY_DECODE
Convert HTML entities to their corresponding characters
HTML_ENTITY_DECODE("I'll \"walk\" the <b>dog</b> now")Try this examplestring (string)The input string. - HTML_TO_TEXT
Converts HTML to plain text and removes all code
HTML_TO_TEXT("<b>Hello</b>")Try this examplehtml (string)HTML to convert to plain textdrop_links (boolean)Default: FALSE, Set to TRUE to not render links as [http://foo.com](My Link), but rather just My Link - HTMLENTITIES
Convert all applicable characters to HTML entities
HTMLENTITIES("A 'quote' is <b>bold</b>")Try this examplestring (string)The input string. - HTMLSPECIALCHARS
Convert special characters to HTML entities
HTMLSPECIALCHARS("<a href='test'>Test</a>")Try this examplestring (string)The string being converted. - HTMLSPECIALCHARS_DECODE
Convert special HTML entities back to characters
HTMLSPECIALCHARS_DECODE("<p>this -> "</p>\n")Try this examplestring (string)The string to decode. - MARKDOWN2HTML
Returns valid HTML from Markdown
MARKDOWN2HTML("Hello _Antify_!")Try this exampletext (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 examplehtml (string)HTML to convert to plain textdrop_links (boolean)Default: FALSE, Set to TRUE to not render links as [http://foo.com](My Link), but rather just My Link - 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 examplestr (string)The input string.allowable_tags (string)Optional: You can use the optional second parameter to specify tags which should not be stripped. - STRIPHTML
Strip HTML and PHP tags from a string
STRIPHTML("<p>Test paragraph.</p><!-- Comment --> <a href='#fragment'>Other text</a>")Try this examplestr (string)The input string.