Escape HTML

This commit is contained in:
2025-05-10 19:27:44 +02:00
parent e58751e464
commit 804f33657d
3 changed files with 1820 additions and 1819 deletions

View File

@ -348,6 +348,7 @@ def generate_atom_feed(articles: list[dict[Any, Any]], file_name: str) -> str:
)
article_content = article_content.replace(" ", " ") # Replace non-breaking spaces with regular spaces # noqa: RUF001
article_content: str = converter.convert(article_content).strip() # type: ignore # noqa: PGH003
article_content = escape(article_content)
article_url: str = f"https://wutheringwaves.kurogames.com/en/main/news/detail/{article_id}"
article_create_time: str = article.get("createTime", "")