We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 806107d commit 0c5e940Copy full SHA for 0c5e940
Doc/whatsnew/3.14.rst
@@ -155,7 +155,7 @@ As another example, generating HTML attributes from data:
155
156
attributes = {"src": "shrubbery.jpg", "alt": "looks nice"}
157
template = t"<img {attributes}>"
158
- assert html(template) == '<img src="shrubbery.jpg" alt="looks nice" class="looks-nice">'
+ assert html(template) == '<img src="shrubbery.jpg" alt="looks nice" />'
159
160
Compared to using an f-string, the ``html`` function has access to template attributes
161
containing the original information: static strings, interpolations, and values
0 commit comments