We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently when you concatenate HTML() strings with regular strings, the entire result will get escaped (because the HTML() class gets dropped.
HTML()
>>> div(HTML("&") + " &") <div>& &</div>
It seems most intuitive for the result to be:
>>> div(HTML("&") + " &") <div>& &</div>
but that also seems tricky/involved to implement.
(Note that you currently get similar behavior in attributes as well as children since we use + there as well)
The text was updated successfully, but these errors were encountered:
Somewhat relatedly, it's bummer that this currently doesn't work
>>> div(" ".join([HTML("&"), HTML("&")])) <div>& &</div>
Sorry, something went wrong.
TagAttrValue and TagAttrDict now support HTML values
8abe640
If a non-HTML value is added to an HTML value, the non-HTML value is escaped Fixes #15
cpsievert
No branches or pull requests
Currently when you concatenate
HTML()
strings with regular strings, the entire result will get escaped (because theHTML()
class gets dropped.It seems most intuitive for the result to be:
but that also seems tricky/involved to implement.
(Note that you currently get similar behavior in attributes as well as children since we use + there as well)
The text was updated successfully, but these errors were encountered: