Skip to content

Commit

Permalink
Fix #3 : invalid xml character
Browse files Browse the repository at this point in the history
  • Loading branch information
G.Tjebbes committed May 18, 2016
1 parent eb6bdaa commit b3bf106
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sqla_inspect/py3o.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ def format_py3o_val(value):
* Handle linebreaks
"""
return Markup(force_unicode(value).replace(u'\n', u'<text:line-break/>'))
value = force_unicode(value)
value = escape(value)
value = value.replace(u'\n', u'<text:line-break/>')
return Markup(value)


class SqlaContext(BaseSqlaInspector):
Expand Down

0 comments on commit b3bf106

Please sign in to comment.