mirror of
https://github.com/godotengine/godot-docs.git
synced 2025-12-31 17:49:03 +03:00
Escape double quotes for meta descriptions in HTML
If this not done, some descriptions will be closed earlier than intended.
This commit is contained in:
@@ -78,6 +78,9 @@ class DescriptionGenerator:
|
||||
# Replace multiple spaces with single spaces
|
||||
desc = re.sub("\\s+", " ", desc)
|
||||
|
||||
# Escape double quotes for HTML
|
||||
desc = re.sub('"', """, desc)
|
||||
|
||||
return desc
|
||||
|
||||
def create_description(self, cutoff_suffix="..."):
|
||||
|
||||
Reference in New Issue
Block a user