mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Merge pull request #846 from abdnh/dupe-decode-entities
Fix duplicate check not decoding entities
This commit is contained in:
commit
ae04097b41
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