janboddez / feed-reader

A very simple feed reader plugin for WordPress
https://feedreader.site
GNU General Public License v3.0
11 stars 0 forks source link

Note incorrectly identified as article #57

Closed janboddez closed 1 year ago

janboddez commented 1 year ago

Oopsie.

image

Like, I think I made a mistake somewhere trying to deal with https://github.com/janboddez/feed-reader/issues/42

janboddez commented 1 year ago

Looks like special characters ...

[17-Sep-2023 10:14:27 UTC] Ifyouaremakingcinnamonsyrup,don’tuse
[17-Sep-2023 10:14:27 UTC] Ifyouaremakingcinnamonsyrup,don’tuseregulargrocerystorecinnamonsticks(usuallyCeylonorSriLankan).SeekoutCassiabark.Itmakesabigdifferenceinthefinalflavor.
...
[17-Sep-2023 10:14:27 UTC] LikesAweeklynote–JeremyFeltby
[17-Sep-2023 10:14:27 UTC] LikesAweeklynote–JeremyFeltbyJeremyFelt.
janboddez commented 1 year ago

Looks like html_entity_decode() doesn't decode – or ’ and so on. (The title is somehow never encoded, contains unicode characters right off the bat.)

janboddez commented 1 year ago

It's due to my use of ENT_XML1. While the content is XML, I want to/should decode it as HTML(5).

janboddez commented 1 year ago

Tbh, it really depends on title's encoding (or lack thereof).