Uncaught TypeError: doc.fromHTML is not a function code example
Example: doc.fromHTML is not a function
The fromHTML function was replaced by html in 2.0.0. Unfortunately, the typings currently still contain the fromHTML method but a fix is under way.