diff --git a/src/yunohost/diagnosis.py b/src/yunohost/diagnosis.py
index 9a8962ac4..c11cde566 100644
--- a/src/yunohost/diagnosis.py
+++ b/src/yunohost/diagnosis.py
@@ -479,8 +479,10 @@ class Diagnoser():
s = m18n.n(info[0], **(info[1]))
# In cli, we remove the html tags
if msettings.get("interface") != "api":
+ s = s.replace("", "'").replace("", "'")
s = html_tags.sub('', s.replace("
","\n"))
else:
+ s = s.replace("", "").replace("
", "")
# Make it so that links open in new tabs
s = s.replace("