Namespace: Strings:unmaskFromHtml

Strings:unmaskFromHtml

Source:

Methods

unmaskFromHtml(html) → {String}

Replaces entities in a html-masked string with the vanilla characters thereby returning a real HTML string, which could, for example, be used to construct new elements with tag markup.

Parameters:
Name Type Description
html String

the string to unmask entities in

Source:
See:
Returns:
the unmasked string
Type
String
Example
unmaskFromHtml('</>&;üäöÜÄÖß– »')
=> '</>&;üäöÜÄÖß– »'