Published on : August 11, 2020
Title | : | php.htmlentities |
Purpose | : | Convert some characters to HTML entities |
Syntax | : | [php.htmlentities p1={template.htmlstr} o.set=template.hstr /] |
Input Parameter | : | p1: HTML String p2: (Optional) Specifies how to handle quotes, invalid encoding and the used document type. |
Return Value | : | Returns the converted string. |
Example | [template.set htmlstr='<span>Test</span>’ /] [php.htmlentities p1={template.htmlstr} o.set=template.hstr /] [template.echo hstr /] |