From a334b3ffdef6ef9f38c593fc21da866c30ac2d19 Mon Sep 17 00:00:00 2001 From: parazyd Date: Wed, 26 Sep 2018 19:22:46 +0200 Subject: [PATCH] Fix HTML escape of "'". --- jenkins_backend/sync_jobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins_backend/sync_jobs.py b/jenkins_backend/sync_jobs.py index 0e15d9c..f05da57 100755 --- a/jenkins_backend/sync_jobs.py +++ b/jenkins_backend/sync_jobs.py @@ -13,7 +13,7 @@ def html_escape(string): """ Function for escaping certain symbols to XML-compatible sequences. """ - html_codes = [("'", '''), ('"', '"'), ('&', '&'), + html_codes = [("'", '''), ('"', '"'), ('&', '&'), ('<', '<'), ('>', '>')] for i in html_codes: string = string.replace(i[0], i[1])