Allows to codify the received text in several types of languages.

1 string.encode

<string.encode
    type='type'
    encoding='encoding'
>
    <text /> !
</string.encode>

Exceptions

unssuported string coding to ...

The coding type is not supported.

requires 1 arguments, received: ...

The entry parameter has not been specified.

Example

Visualize initial position of the last of the argument2 which can have in the argument1.

Copy
<xsql-script name='string_encode'>
    <args>
        <arg name='text' />
    </args>
    <body>
        <!-- <b>hello</b> -->
        <println><string.encode type='html.text'><text /></string.encode></println>
    </body>
</xsql-script>