TVDB char entity fix (Update 'webif/lib/xml.class') #2
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch ":tvdb-entity-decode"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Attempt to fix the issue reported at https://hummy.tv/forum/threads/special-characters-sweeper-rename-39-instead-of.9638/#post-140275
Decode numeric and subset of named character entities (without reference to DTD) in TXT node that isn't CDATA.
Add parser test harness.
Add attribution of source and include more of it for the above.
Works for me but not tested with TVDB.
WIP: TVDB char entity fix (Update 'webif/lib/xml.class')to TVDB char entity fix (Update 'webif/lib/xml.class')This ought to deal with the issue in TVDB.
Sweeper has two roll-your-own versions of the entity decoding; it would be better to add a routine to cgi.tcl, like this:
(assuming in the above revised cgi_quote_html that 1 [string map] is faster than several [regsub])