Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 2    Views: 79

mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
08/15/15 08:37 PM (8 years ago)

[Solved] RD Simple RSS will parse a link by changing the # to a % symbol, breaking my link.

Hi BT Gang! Got a fun one for you today :-) Currently using RD Simple RSS, I have a RSS feed that looks like: <item> <title>cool title!</title> <description>cool description!</description> <link>http://www.coolsite.com/category/schedule#01<link> </item> However, when you tap on the link, it actually loads: http://www.coolsite.com/category/schedule%01 (notice the link now has a % instead of a #, which breaks the link) Any ideas? I've gone through the source code but have 0 experience with RSS feeds. Any help would be appreciated - threw a PM to Red Dog already (plugin creator). :-) Thanks folks! mrDavid
 
CheechNChong
Aspiring developer
Profile
Posts: 4
Reg: Nov 01, 2011
location unknow...
40
like
08/15/15 11:09 PM (8 years ago)
did you properly encode the xml for http://www.coolsite.com/category/schedule#01?" <?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>cool title!</title> <description>cool description!</description> <link>http://www.coolsite.com/category/schedule#01</link> </item> </channel> </rss> PS...not sure if you typed it or copied and pasted but the link data isn't escaped... gotta add / in the ending tag.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
08/16/15 12:22 AM (8 years ago)
Hi CNC! Thanks for the advice - that wasn't it, but appreciate it! @SmugWimp had my back on this, he noted that the URL was encoded before loaded. In: RD_customURL.m on line 293, go around "escapedUrl" and just load "useURL", super easy. Thanks again! mrDavid
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.