Bug 41988 - OPAC: News RSS links with HTML not working
Summary: OPAC: News RSS links with HTML not working
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Hammat wele
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-04 02:41 UTC by Hammat wele
Modified: 2026-03-04 19:04 UTC (History)
2 users (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 41988: OPAC News RSS links with HTML not working (3.28 KB, patch)
2026-03-04 02:55 UTC, Hammat wele
Details | Diff | Splinter Review
Bug 41988: OPAC News RSS links with HTML not working (3.28 KB, patch)
2026-03-04 14:24 UTC, Hammat wele
Details | Diff | Splinter Review
Bug 41988: OPAC News RSS links with HTML not working (3.30 KB, patch)
2026-03-04 19:04 UTC, Owen Leonard
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Hammat wele 2026-03-04 02:41:00 UTC Comment hidden (obsolete)
Comment 1 Hammat wele 2026-03-04 02:55:51 UTC Comment hidden (obsolete)
Comment 2 Hammat wele 2026-03-04 14:24:14 UTC
Created attachment 194453 [details] [review]
Bug 41988: OPAC News RSS links with HTML not working

    The news RSS link on the OPAC appears to be invalid when the news content contains HTML. Users cannot subscribe to the feed using standard RSS readers or email clients.

    To reproduce:

    1- Go to Tools -> HTML customizations -> News
    2- Click New Entry with the following settings:
        2-1- Display location: OPAC
        2-2- Publication date: today
        2-3- Title: "News test"
        2-4- Content: click on <> and paste some HTML code, for example:
        <span style="color: #ba372a; font-size: 12pt;">Le Pr&ecirc;t entre biblioth&egrave;ques est mis en pause. D&eacute;sol&eacute;s de l'inconv&eacute;nients.<br />Merci de votre compr&eacute;hension.</span>
    3- Save the entry.
    4- Go to the OPAC and copy the "RSS feed for system-wide library news" link.
    5- Execute: curl -v http://opac/cgi-bin/koha/opac-news-rss.pl?branchcode= and copy the XML output to https://validator.w3.org/feed/ to check the feed.
        ==> The feed is not valid.
    6- Try to create a subscription to this link in an email client (e.g., Thunderbird).
        ==> It does not work, giving the error "Feed URL is not valid".
    7- Apply the patch.
    8- Repeat steps 5 and 6.
        ==> The feed is now a valid RSS.
    9- Repeat step 7.
        ==> You can now subscribe to the RSS feed using standard readers and email clients.
Comment 3 Owen Leonard 2026-03-04 19:04:07 UTC
Created attachment 194463 [details] [review]
Bug 41988: OPAC News RSS links with HTML not working

The news RSS link on the OPAC appears to be invalid when the news
content contains HTML. Users cannot subscribe to the feed using
standard RSS readers or email clients.

To reproduce:

1- Go to Tools -> HTML customizations -> News
2- Click New Entry with the following settings:
   2-1- Display location: OPAC
   2-2- Publication date: today
   2-3- Title: "News test"
   2-4- Content: click on <> and paste some HTML code, for example:
        <span style="color: #ba372a; font-size: 12pt;">Le Pr&ecirc;t
        entre biblioth&egrave;ques est mis en pause.
        D&eacute;sol&eacute;s de
        l'inconv&eacute;nients.<br />Merci de votre
        compr&eacute;hension.</span>
3- Save the entry.
4- Go to the OPAC and copy the "RSS feed for system-wide library news"
   link.
5- Execute: curl -v
   http://opac/cgi-bin/koha/opac-news-rss.pl?branchcode= and copy the
   XML output to https://validator.w3.org/feed/ to check the feed.
     ==> The feed is not valid.
6- Try to create a subscription to this link in an email client (e.g.,
   Thunderbird).
     ==> It does not work, giving the error "Feed URL is not valid".
7- Apply the patch.
8- Repeat steps 5 and 6.
     ==> The feed is now a valid RSS.
9- Repeat step 7.
     ==> You can now subscribe to the RSS feed using standard readers
         and email clients.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>