Bug: Double-encoded HTML entities in item <title> (’ becomes &#8217;)
Description
When source feeds (such as The Verge or WordPress-based RSS feeds) contain numeric HTML character references in their titles (e.g. curly apostrophes or quotes like ’ inside a CDATA block), the generated Full-Text RSS output double-encodes the ampersand:
<!-- Source Feed: -->
<title type="html"><![CDATA[Intel says it’s selling every affordable laptop chip it can make]]></title>
<!-- Full-Text RSS Output: -->
<title>Intel says it&#8217;s selling every affordable laptop chip it can make</title>
As a result, RSS readers (such as FreshRSS, Miniflux, and NetNewsWire) parse & back into a literal & and display the raw code it’s instead of the apostrophe (it’s).
Root Cause
In makefulltextfeed.php (around line 712):
$feed_item_title = strip_tags(htmlspecialchars_decode($feed_item_title));
PHP’s htmlspecialchars_decode() only converts &, ", ', <, and >. It does not decode numeric character entities such as ’ or “.
Because ’ remains as literal text in $feed_item_title, the XML FeedWriter later escapes the ampersand into &, producing &#8217;.
Suggested Fix
Replace htmlspecialchars_decode() with html_entity_decode() so numeric and named HTML entities are converted to UTF-8 characters prior to XML generation:
$feed_item_title = strip_tags(html_entity_decode($feed_item_title, ENT_QUOTES, 'UTF-8'));
