Generally, str objects display on the console. How can I convert my html object to an str object so that it can display on the console?
x = HTML('<p>hello</p>')
string = str(x)
display(string)
Generally, str objects display on the console. How can I convert my html object to an str object so that it can display on the console?
x = HTML('<p>hello</p>')
string = str(x)
display(string)
Copyright © 2021 Jogjafile Inc.