Skip to content

[BUG] Feed description is rendered with HTML entities #5320

@mrnoname1000

Description

@mrnoname1000

Describe the bug
After submitting a feed description with HTML special characters, those characters show up as HTML entities, e.g. & and >. I would guess there's a double escape happening somewhere.

To Reproduce
Steps to reproduce the behavior:

  1. Open the config for any feed
  2. Add special characters to its description, e.g. & or >
  3. Submit changes
  4. Description now contains HTML entities

Expected behavior
Description does not escape special characters.

Screenshots
chrome_screenshot_Apr 19, 2023 7_11_21 PM CDT

Environment information (please complete the following information):

  • Device: OnePlus 6
  • OS: Android 11
  • Browser: Bromite 108
  • FreshRSS version: edge [ecd956c]
  • Database version: PostgreSQL 13.9
  • PHP version: PHP 7.4
  • Installation type: Self-hosted [Debian 11.6]

Additional context
The screenshot I posted is from an HTML+XPath feed but the same happens for ordinary feeds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    UI 🎨User Interfaces

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions