diff libervia/pages/events/rsvp/page_meta.py @ 1229:acec8e9185db

pages: replaced deprecated `cgi.escape` by `html.escape`
author Goffi <goffi@goffi.org>
date Mon, 18 Nov 2019 21:49:42 +0100
parents b2d067339de3
children b32b74dfe866
line wrap: on
line diff
--- a/libervia/pages/events/rsvp/page_meta.py	Mon Nov 18 21:46:12 2019 +0100
+++ b/libervia/pages/events/rsvp/page_meta.py	Mon Nov 18 21:49:42 2019 +0100
@@ -8,7 +8,7 @@
 from sat.core.log import getLogger
 from sat.tools.common.template import safe
 import time
-import cgi
+import html
 
 """creation of new events"""
 
@@ -58,7 +58,7 @@
                 background-size: 15em;
             }
             """
-            % cgi.escape(background_image, True)
+            % html.escape(background_image, True)
         )
     template_data["event"] = event_data
     event_invitee_data = yield self.host.bridgeCall(