fcf.decodeHtml() function
Package: fcf-framework-core
File: fcf-framework-core:fcf.js
Available from version: 2.0.2
Performs decoding of descriptions of special characters in an HTML string
Arguments
- A string containing a description of special HTML characters
Result
- Decoded string
Example: Function application
{
let newString = fcf.decodeHtml ("Ampersand character: &");
console.log(newString);
}
{
let newString = fcf.decodeHtml("Less than sign character: <");
console.log (newString);
}
{
let newString = fcf.decodeHtml("Delta character: δ");
console.log(newString);
}
{
let newString = fcf.decodeHtml ("Greater than sign character (Dec value): >");
console.log (newString);
}
Output:
Ampersand character: &
Less than sign character: <
Delta character: δ
Greater than sign character (Dec value): >