From 2f9341dcb896de58729d20a594c8fec453acc88c Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Sat, 16 Oct 2010 08:03:13 +0000 Subject: [PATCH] NarrativeWeb: Part of bug#4287: Description for the individual gallery is now escape so that for one the ampersand is taken care of. svn: r16001 --- src/plugins/webreport/NarrativeWeb.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index 712a92b8f..414aff152 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -1506,7 +1506,7 @@ class BasePage(object): mime_type = photo.get_mime_type() # get media description - descr = photo.get_description() + descr = html_escape( photo.get_description() ) if mime_type: try: @@ -1538,8 +1538,7 @@ class BasePage(object): newpath = newpath.replace('\\',"/") # begin hyperlink - section += self.media_link(photo_handle, newpath, descr, - True, True) + section += self.media_link(photo_handle, newpath, descr, True, True) except (IOError, OSError), msg: WarningDialog(_("Could not add photo to page"), str(msg))