Smartsite SXML CopyCode image Copy Code
<se:buffer name="data">
    <b>this text contains ' and " quotes</b>
</se:buffer>

{string.htmlencode($data)}
{string.htmlencode($data, false)}
{string.htmlencode($data, true)}
Example Result CopyCode image Copy Code
&lt;b&gt;this text contains ' and " quotes&lt;/b&gt;


    &lt;b&gt;this text contains ' and " quotes&lt;/b&gt;


    &lt;b&gt;this text contains &apos; and &quot; quotes&lt;/b&gt;
SXML