Status
Release Available |
Status |
Framework Name |
---|---|---|
4.2 |
Current |
MUI and Mint |
General
A new field type HTML is added which is always a read-only field and parse string to HTML. The HTML field can be used to parse the HTML syntax in Portal. A portal administrator can add the HTML code inside the block and it will be parsed as a webpage.
All the data coming from the backend to Portal is sanitized to avoid any Cross-site scripting (XSS) security issues.
To render the contents of HTML with $ syntax variables properly, add the syntax formatter as $this.attr(htmlFieldName, html);
Code JSON
"templates": { "record": "StringToHTML__c : $this.attr(StringToHTML__c, html);" }