Skip to content

Utils

Purpose

Provides utility methods.

Methods

Binding name: p6.utils

Method: String p6.utils.escapeXml(String xmlStr)

Escape the given XML string.


Method: String p6.utils.unescapeXml(String escStr)

Unescape the given escaped XML string.


Method: String p6.utils.pause()

Pauses the execution until Platform 6 is stopped or the user manually stops the script via the UI.

Examples

println p6.utils.espaceXml("<root><node>value</node></root>")

println p6.utils.unescapeXml("&lt;root&gt;&lt;node&gt;value&lt;/node&gt;&lt;/root&gt;")

println p6.utils.pause()