# HG changeset patch # User souliane # Date 1452857421 -3600 # Node ID 330db23d4a444be54f1b660d9bf64e1fdf00cdc3 # Parent c1907a460f6a71f510bfac8e3154e5fa3057b4cd server (blog): call fixXHTMLLinks on XHTML content diff -r c1907a460f6a -r 330db23d4a44 src/server/blog.py --- a/src/server/blog.py Fri Jan 15 15:42:37 2016 +0100 +++ b/src/server/blog.py Fri Jan 15 12:30:21 2016 +0100 @@ -19,7 +19,7 @@ # along with this program. If not, see . from sat.core.i18n import _, D_ -from sat_frontends.tools.strings import addURLToText +from sat_frontends.tools.strings import addURLToText, fixXHTMLLinks from sat.core.log import getLogger log = getLogger(__name__) from sat.tools import common @@ -609,7 +609,7 @@ def getText(self, entry, key): try: - return entry['{}_xhtml'.format(key)] + return fixXHTMLLinks(entry['{}_xhtml'.format(key)]) except KeyError: try: processor = addURLToText if key.startswith('content') else sanitizeHtml