Provides functions for safely escaping HTML and composing common HTML elements, documents, forms, tables, and lists. The module was renamed from HTMLBuilder to HTML.
Availability: ZPE 1.14.11 is the first version to support the HTML module.
Module functions
The following is a list of all functions available in this module.
-
attribute
[1.14.11+]
Creates one escaped HTML attribute.
-
attributes
[1.14.11+]
Creates escaped HTML attributes from a map.
-
body
[1.14.11+]
Wraps content in a body element.
-
button
[1.14.11+]
Creates an HTML button element.
-
cell
[1.14.11+]
Creates an HTML table cell.
-
close
[1.14.11+]
Creates a closing HTML tag.
-
comment
[1.14.11+]
Creates an HTML comment.
-
doctype
[1.14.11+]
Creates an HTML doctype declaration.
-
document
[1.14.11+]
Creates a complete HTML5 document.
-
escape
[1.14.11+]
Escapes text for use in HTML text content.
-
escape_attribute
[1.14.11+]
Escapes text for use in an HTML attribute value.
-
form
[1.14.11+]
Creates an HTML form.
-
head
[1.14.11+]
Wraps content in a head element.
-
image
[1.14.11+]
Creates an HTML image element.
-
input
[1.14.11+]
Creates an HTML input element.
-
link
[1.14.11+]
Creates an HTML link.
-
list
[1.14.11+]
Creates an HTML unordered or ordered list.
-
list_item
[1.14.11+]
Creates an HTML list item.
-
meta
[1.14.11+]
Creates a meta element.
-
open
[1.14.11+]
Creates an opening HTML tag.
-
option
[1.14.11+]
Creates an HTML option element.
-
raw
[1.14.11+]
Returns trusted HTML without escaping it.
-
row
[1.14.11+]
Creates an HTML table row.
-
script
[1.14.11+]
Creates an external script element.
-
select
[1.14.11+]
Creates an HTML select element.
-
style
[1.14.11+]
Creates an inline style element.
-
table
[1.14.11+]
Creates a simple HTML table.
-
tag
[1.14.11+]
Creates an HTML element with raw content.
-
text
[1.14.11+]
Creates escaped HTML text.
-
textarea
[1.14.11+]
Creates an HTML textarea element.
-
unescape
[1.14.11+]
Decodes standard HTML character references.
-
void
[1.14.11+]
Creates an HTML void element.

There are no comments on this page.
Comments are welcome and encouraged, including disagreement and critique. However, this is not a space for abuse. Disagreement is welcome; personal attacks, harassment, or hate will be removed instantly. This site reflects personal opinions, not universal truths. If you can’t distinguish between the two, this probably isn’t the place for you. The system temporarily stores IP addresses and browser user agents for the purposes of spam prevention, moderation, and safeguarding. This data is automatically removed after fourteen days. Your email address is stored so that replies can be sent to your email address.
Comments powered by BalfComment