diff --git a/README.md b/README.md index 55aed22..393a5e2 100644 --- a/README.md +++ b/README.md @@ -354,7 +354,7 @@ If you need access to all of information in the item, then we can go a stage earlier in the process and override the td_contents method: ```python -from flask import Markup +from markupsafe import Markup def td_contents(self, i, attr_list): # by default this does diff --git a/examples/sortable.py b/examples/sortable.py index e94d7ba..3bc2fb1 100644 --- a/examples/sortable.py +++ b/examples/sortable.py @@ -1,5 +1,6 @@ from flask_table import Table, Col, LinkCol -from flask import Flask, Markup, request, url_for +from flask import Flask, request, url_for +from markupsafe import Markup """ A example for creating a Table that is sortable by its header diff --git a/flask_table/columns.py b/flask_table/columns.py index fc74d24..5ae1558 100644 --- a/flask_table/columns.py +++ b/flask_table/columns.py @@ -1,6 +1,7 @@ from __future__ import unicode_literals -from flask import Markup, url_for +from flask import url_for +from markupsafe import Markup from babel.dates import format_date, format_datetime from flask_babel import gettext as _ diff --git a/flask_table/html.py b/flask_table/html.py index f9ca78b..9edb87a 100644 --- a/flask_table/html.py +++ b/flask_table/html.py @@ -2,7 +2,7 @@ from __future__ import unicode_literals from functools import partial -from flask import Markup +from markupsafe import Markup def element(element, attrs=None, content='', diff --git a/flask_table/table.py b/flask_table/table.py index 9495e6e..a70324e 100644 --- a/flask_table/table.py +++ b/flask_table/table.py @@ -2,7 +2,7 @@ from __future__ import unicode_literals from collections import OrderedDict -from flask import Markup +from markupsafe import Markup from flask_babel import gettext as _ from .columns import Col