-
Notifications
You must be signed in to change notification settings - Fork 1
Reference
The plugin provides the following functions:
For HTML Generation:
-
MarkupGen_html_newElem
Creates a new HTML element, such as<p>
or<a href="x">
. -
MarkupGen_html_toText
Converts an element or list of HTML elements to text. -
MarkupGen_html_newTextPart
(Less common) Creates a new element for text. It's necessary only when you need to use a uniform list of the MarkupGen_HtmlPart data type. -
MarkupGen_html_newRawPart
(Less common) Creates a new element with raw HTML. Use it only where necessary and with a lot of caution. Make sure that the raw content is trusted and doesn't contain parts with unsanitised user input.
For XML Generation:
-
MarkupGen_xml_newElem
Creates a new XML element, such as<item>
or<person>
. -
MarkupGen_xml_toText
Converts an XML element or list of XML elements to text. -
MarkupGen_xml_newTextPart
(Less common) Creates a new element for text. It's necessary only when you need to use a uniform list of the MarkupGen_XmlPart data type. -
MarkupGen_xml_newRawPart
(Less common) Creates a new element with raw XML. Use it only where necessary and with a lot of caution. Make sure that the raw content is trusted and doesn't contain parts with unsanitised user input.