Merge pull request #1197 from RumovZ/fix-template-err
Escape HTML in template error message
This commit is contained in:
commit
400254277b
@ -260,7 +260,7 @@ fn template_error_to_anki_error(err: TemplateError, q_side: bool, tr: &I18n) ->
|
||||
} else {
|
||||
tr.card_template_rendering_back_side_problem()
|
||||
};
|
||||
let details = localized_template_error(tr, err);
|
||||
let details = htmlescape::encode_minimal(&localized_template_error(tr, err));
|
||||
let more_info = tr.card_template_rendering_more_info();
|
||||
let info = format!(
|
||||
"{}<br>{}<br><a href='{}'>{}</a>",
|
||||
|
Loading…
Reference in New Issue
Block a user