- html2unicode(html) β
Promise.<String> Turns an html string into an unicode string.
- transform()
Transforms a text according to the given options
Turns an html string into an unicode string.
Kind: global function
Returns: Promise.<String> - an unicode string.
| Param | Type | Description |
|---|---|---|
| html | string |
the source html |
Example
await html2unicode("Hello, <b>world</b> !");
// --> "Hello, ππΌπΏπΉπ±!"Transforms a text according to the given options
Kind: global function
Example
transform("world", {bold: true});
// --> "ππΌπΏπΉπ±"Example
transform("world", {underline: true});
// --> "wΜ²oΜ²rΜ²lΜ²dΜ²"Example
transform("world", {bold: true, italics: true});
// --> "π¬π€π§π‘π"Example
transform("n", {sup: true});
// --> "βΏ"Example
transform("text", {mono: true});
// --> "πππ‘π"