posit-dev / py-htmltools

Tools for HTML generation and output
MIT License
19 stars 4 forks source link

Using str()/repr() on a Tag/TagList/HTML now returns a string, not an HTML string #38

Closed cpsievert closed 2 years ago

cpsievert commented 2 years ago

Closes #37

wch commented 2 years ago

Just a note for future reference: if we run into other places where there's strange/unexpected behavior from an HTML object being a subclass of str, it might make sense to change it so it's not a subclass of str and instead contains a str.