Commit 9d83ff8f authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Html escape lsptooltip text



This is necessary as text like std::vector<int> can break the tooltip
very easily.
Signed-off-by: Waqar Ahmed's avatarWaqar Ahmed <waqar.17a@gmail.com>
parent 3d29ee60
...@@ -39,7 +39,7 @@ public: ...@@ -39,7 +39,7 @@ public:
QString htext = text; QString htext = text;
// we have to do this to handle soft line // we have to do this to handle soft line
htext.replace(QLatin1Char('\n'), QStringLiteral(" \n")); htext.replace(QLatin1Char('\n'), QStringLiteral(" \n"));
setMarkdown(htext); setMarkdown(htext.toHtmlEscaped());
resizeTip(text); resizeTip(text);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment