mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
Fix duplicate check not decoding entities
This is a regression introduced in 358d0f957e
See https://forums.ankiweb.net/t/bug-duplicates-not-detecting-on-paste/5753
This commit is contained in:
parent
77c9db5bba
commit
197d665de8
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ fn tts_tag_from_string<'a>(field_text: &'a str, args: &'a str) -> AVTag {
|
|||
|
||||
pub fn strip_html_preserving_media_filenames(html: &str) -> Cow<str> {
|
||||
let without_fnames = HTML_MEDIA_TAGS.replace_all(html, r" ${1}${2}${3} ");
|
||||
let without_html = HTML.replace_all(&without_fnames, "");
|
||||
let without_html = strip_html(&without_fnames);
|
||||
// no changes?
|
||||
if let Cow::Borrowed(b) = without_html {
|
||||
if ptr::eq(b, html) {
|
||||
|
|
Loading…
Reference in a new issue