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
This commit is contained in:
Rob G. Healey 2010-10-16 08:03:13 +00:00
parent 77f96037fa
commit 2f9341dcb8

View File

@ -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))