Overview
This plugin provides Appian functions that generate HTML and XML content with properly-escaped characters. It can be used to produce HTML email content, XML to be fed into plugins or services, etc.
By escaping characters by default and automatically opening and closing tags and attributes, it provides a better abstraction and mechanism for less error-prone content generation.
Here's an example of this plug-in in use, which helps us create valid HTML content with escaping that happens by default:
MarkupGen_html_toText( MarkupGen_html_newElem("p", {class: "info"}, { MarkupGen_html_newElem("b", null, "Message for " & ri!name), ri!message, MarkupGen_html_newElem( "a", { href: ri!url }, "Click here to " & ri!action ) } ) )
Notice how the language syntax helps us create valid HTML content. Furthermore, the HTML escaping happens by default; we don't need to remember to call a specific function to escape text.
Key Features & Functionality
For HTML Generation:
For XML Generation:
Github repository for source code and more details:https://github.com/innodev-au/innodev-appianfunctions-markupgen
Hello,
Is your plugin is impacted by the CVE-2022-42889 ? Can you update the Apache.CommonsText library to 1.10 ?
Thanks