htmy 0.3.3__tar.gz → 0.3.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of htmy might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: htmy
3
- Version: 0.3.3
3
+ Version: 0.3.4
4
4
  Summary: Async, pure-Python rendering engine.
5
5
  License: MIT
6
6
  Author: Peter Volf
@@ -7,6 +7,7 @@ from collections.abc import Callable, Container
7
7
  from pathlib import Path
8
8
  from typing import TYPE_CHECKING, Any, ClassVar, Generic, TypedDict, cast, overload
9
9
  from xml.sax.saxutils import escape as xml_escape
10
+ from xml.sax.saxutils import quoteattr as xml_quoteattr
10
11
 
11
12
  from .io import open_file
12
13
  from .typing import (
@@ -429,7 +430,7 @@ class Formatter(ContextAware):
429
430
  See `SkipProperty` for more information.
430
431
  """
431
432
  try:
432
- return f'{self.format_name(name)}="{self.format_value(value)}"'
433
+ return f"{self.format_name(name)}={xml_quoteattr(self.format_value(value))}"
433
434
  except SkipProperty:
434
435
  return ""
435
436
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "htmy"
3
- version = "0.3.3"
3
+ version = "0.3.4"
4
4
  description = "Async, pure-Python rendering engine."
5
5
  authors = ["Peter Volf <do.volfp@gmail.com>"]
6
6
  license = "MIT"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes