fcf.encodeHtml() function
Package: fcf-framework-core
File: fcf-framework-core:fcf.js
Available from version: 2.0.2
Encodes only structural special characters ( " ' > < &) in an HTML code construct
Arguments
- Source string
Result
- Encoded HTML string
Example: Function application
{
let newString = fcf.encodeHtml(`< > & " '`);
console.log(newString);
}
Output:
< > & " '