Skip to content

Latest commit

Β 

History

History
59 lines (51 loc) Β· 1.29 KB

File metadata and controls

59 lines (51 loc) Β· 1.29 KB

Functions

html2unicode(html) β‡’ Promise.<String>

Turns an html string into an unicode string.

transform()

Transforms a text according to the given options

html2unicode(html) β‡’ Promise.<String>

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, π˜„π—Όπ—Ώπ—Ήπ—±!"

transform()

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});
     // --> "𝚝𝚎𝚑𝚝"