Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 5.9.0-b2
-
Fix Version/s: 5.9.0-b2
-
Component/s: None
-
Labels:None
Description
When inserting a data feed for a package descriptions, the HTML code gets printed instead of being rendered. We should remove htmlentities() from the description endpoint for packages.
/core/Util/DataFeed/Feeds/PackageFeed.php, Line 192:
return htmlentities( ($vars['format'] == 'text') ? nl2br($descriptions[$vars['lang']]->{$vars['format']} ?? $package->description) : ($descriptions[$vars['lang']]->{$vars['format']} ?? $package->description_html) );
Change to:
return ($vars['format'] == 'text') ? nl2br($descriptions[$vars['lang']]->{$vars['format']} ?? $package->description) : ($descriptions[$vars['lang']]->{$vars['format']} ?? $package->description_html);