Skip to content

Commit e99c587

Browse files
authored
Update sphinxext/opengraph/descriptionparser.py
1 parent f4e8564 commit e99c587

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinxext/opengraph/descriptionparser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def dispatch_visit(self, node: nodes.Element) -> None:
7474
text = node.astext().replace("\r", "").replace("\n", " ").strip()
7575

7676
# Ensure string contains HTML-safe characters
77-
text = html.escape(text, True)
77+
text = html.escape(text, quote=True)
7878

7979
# Remove double spaces
8080
while text.find(" ") != -1:

0 commit comments

Comments
 (0)