Tcl Library Source Code

View Ticket
Login
Ticket UUID: 1890987
Title: Encoded chars in rss feeds
Type: Patch Version: None
Submitter: decosterjos Created on: 2008-02-11 08:56:25
Subsystem: app: tkchat Assigned To: patthoyts
Priority: 5 Medium Severity:
Status: Open Last Modified: 2008-02-11 08:56:25
Resolution: None Closed By:
    Closed on:
Description:
Hi,

Html-encoded chars (e.g. <) are not decoded before showing the rss info. This piece of code to be added to proc ::tkchat::rss::ShowRssInfo (tkchat_rss.tcl line 152) fixes this problem:

            if {![info exists a(title)] || [string length $a(title)] < 1} {
                set a(title) "(no title)"
            } else {
set a(title) [::htmlparse::mapEscapes $a(title)]
    }
    if {[info exists a(description)]} {
set a(description) [::htmlparse::mapEscapes $a(description)]
    }


Kind regards,

Jos.