Merge pull request #846 from abdnh/dupe-decode-entities

Fix duplicate check not decoding entities
This commit is contained in:
Damien Elmes 2020-12-15 19:58:13 +10:00 committed by GitHub
commit ae04097b41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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> { 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_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? // no changes?
if let Cow::Borrowed(b) = without_html { if let Cow::Borrowed(b) = without_html {
if ptr::eq(b, html) { if ptr::eq(b, html) {