From 6894a51ba4349c6025748df1db3d1bb668e29915 Mon Sep 17 00:00:00 2001 From: Cyrille LOUARN Date: Tue, 16 Jan 2024 15:07:10 +0100 Subject: [PATCH] fix replace when multi makrs '&' --- src/var/lib/tyto/program/sitemap.py | 3 ++- src/var/lib/tyto/program/wip.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/var/lib/tyto/program/sitemap.py b/src/var/lib/tyto/program/sitemap.py index cc0be24..64dc96e 100644 --- a/src/var/lib/tyto/program/sitemap.py +++ b/src/var/lib/tyto/program/sitemap.py @@ -132,4 +132,5 @@ date: %s """ # Generic list item with HTML link for sitemap -link = ' + %s' +link = ' + %s' diff --git a/src/var/lib/tyto/program/wip.py b/src/var/lib/tyto/program/wip.py index b0a2243..8c26b9b 100644 --- a/src/var/lib/tyto/program/wip.py +++ b/src/var/lib/tyto/program/wip.py @@ -601,6 +601,8 @@ def words_tags(): HTMLs[tag][1] ) + replace_article(">&<", "><") + #=====================# # Convert inline code #