--- a/uilib.py Thu Oct 23 14:57:02 2014 +0200
+++ b/uilib.py Wed Apr 30 21:04:14 2014 +0200
@@ -163,6 +163,8 @@
# text publishing #############################################################
+from cubicweb.ext.markdown import markdown_publish # pylint: disable=W0611
+
try:
from cubicweb.ext.rest import rest_publish # pylint: disable=W0611
except ImportError:
@@ -170,6 +172,7 @@
"""default behaviour if docutils was not found"""
return xml_escape(data)
+
TAG_PROG = re.compile(r'</?.*?>', re.U)
def remove_html_tags(text):
"""Removes HTML tags from text