Fix clean_markup when text is None
1 files changed, 3 insertions(+), 0 deletions(-) M src/utils.py
M src/utils.py => src/utils.py +3 -0
@@ 9,6 9,9 @@ def convert_markdown_links(text): def clean_markup(text): """remove unsupported markup from text to use in label""" if text is None: text = "" text = text.replace("<p>", "").replace("</p>", "\n\n") text = text.replace("<em>", "<i>").replace("</em>", "</i>") text = text.replace("<code>", "<tt>").replace("</code>", "</tt>")