diff --git a/rhodecode/lib/markup_renderer.py b/rhodecode/lib/markup_renderer.py
--- a/rhodecode/lib/markup_renderer.py
+++ b/rhodecode/lib/markup_renderer.py
@@ -357,7 +357,9 @@ class MarkupRenderer(object):
if leading_newline:
source += '
'
source += rendered_source.replace("\n", '
')
- return source
+
+ rendered = cls.bleach_clean(source)
+ return rendered
@classmethod
def markdown(cls, source, safe=True, flavored=True, mentions=False,