CMS MADE SIMPLE FORGE

CGFeedMaker

 

[#7739] Invalid feed when "&" is used in the title in e.g. the news module

avatar
Created By: Morten Bjergstrøm (mortenb)
Date Submitted: Sun Mar 25 12:54:06 -0400 2012

Assigned To:
Version: 1.0.14
CMSMS Version: None
Severity: None
Resolution: None
State: Open
Summary:
Invalid feed when "&" is used in the title in e.g. the news module
Detailed Description:
I have created a rss feed for the news module on my site. When I added a news
article with a "&" in the title the feed became non valid and for example the
Live bookmark function in Firefox refused to load the feed.

"Special" characters should probably be rewritten to the equivalent HTML names
in this case &


History

Comments
avatar
Date: 2013-09-16 03:05
Posted By: Leopold Talirz (leoteo)

Just in case you are still looking for a solution - using Smarty this can be
done very easily in the template (and maybe this should be modified in the
sample templates):

Just replace {$event.event_title} ($event.event_title being the variable holding
the text) by {$event.event_title|escape:"html"}

Best,
leoteo

      
Updates

Updated: 2012-03-25 12:57
summary: Invalid feed when "&" is used in the title => Invalid feed when "&" is used in the title in e.g. the news module
resolution_id: => 5