doc.fromHTML is not a function
snippet in html

doc.fromHTML is not a function

user3364

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.