Skip to content

Commit

Permalink
escape source
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl committed Jun 10, 2023
1 parent 5155de2 commit e04de63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ def format_diagnostics_for_annotation(
for diagnostic in diagnostics:
message = text2html(diagnostic.get('message') or '')
source = diagnostic.get('source')
line = "[{}] {}".format(source, message) if source else message
line = "[{}] {}".format(text2html(source), message) if source else message
content = '<body id="annotation" class="{1}"><style>{0}</style><div class="{2}">{3}</div></body>'.format(
lsp_css().annotations, lsp_css().annotations_classname, css_class, line)
annotations.append(content)
Expand Down

0 comments on commit e04de63

Please sign in to comment.