Page.from_str#

Page.from_str(html_str)[source]#

Converts HTML code to a Page object.

Warning

If this method is called after the app starts running, it will call the JavaScript function document.write(). This might lead to potential security issues so use it with care.

Parameters:

html_str (str) – HTML code.