wrapper method for fromHtml