That's what I thought. I'm looking forward to that part of the code. I imagine it would need some clever table manipulations.Kaelri wrote: Yes, this should be doable once I'm able to parse the dates. All of the items from each feed are stored in one big table, so it's very easy to manipulate them however you want.
I see. It's kind of a loop. You need to parse the content first, to find (e.g.) if someone has written "<item>" in a Feed title, substitute that out, and then correctly identify the type, and in order to do that you need to have identified the type first.Kaelri wrote: Yeah, that's a challenge, to say the least. One of the flaws with this approach is that DecodeCharacterReference is applied before the feed is passed to Lua, so I can't tell whether an HTML tag - like <item> or <entry> - is part of the content or the actual markup. That makes it much more difficult to reliably detect the feed format.
I guess you could create your own DecodeCharacter function, but either it would be huge or wouldn't be a universal one, and that's what you 're aiming at.