We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3af2a8 commit 9bbcbb4Copy full SHA for 9bbcbb4
zap2xml.py
@@ -1360,7 +1360,9 @@ def printProgrammes(fh):
1360
1361
if "description" in programs[p] and programs[p]["description"] is not None:
1362
xdets = ""
1363
- tmp = enc(programs[p]["description"])
+ tmp = programs[p]["description"]
1364
+ tmp = unicode(BeautifulStoneSoup(tmp, convertEntities=BeautifulStoneSoup.ALL_ENTITIES))
1365
+ tmp = enc(tmp)
1366
if "-X" in options:
1367
xdets = addXDetails(programs[p], schedule[station][s])
1368
fh.write("\t\t<desc lang=\"" + lang + "\">" + xdets + "</desc>\n")
0 commit comments