FCF 2.0 development in progress...
> > > >
[News] [Packages API] [Downloads] [Donate to the project] [Contacts]

fcf.decodeHtml() function

string fcf.decodeHtml(string a_str)

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

string a_str
- A string containing a description of special HTML characters
Result
string
- 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): >