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 caad163 commit 2793b68Copy full SHA for 2793b68
Doc/whatsnew/3.14.rst
@@ -278,7 +278,7 @@ As another example, generating HTML attributes from data:
278
279
attributes = {"src": "shrubbery.jpg", "alt": "looks nice"}
280
template = t"<img {attributes}>"
281
- assert html(template) == '<img src="shrubbery.jpg" alt="looks nice" class="looks-nice">'
+ assert html(template) == '<img src="shrubbery.jpg" alt="looks nice" />'
282
283
Compared to using an f-string, the ``html`` function has access to template attributes
284
containing the original information: static strings, interpolations, and values
0 commit comments