Skip to content

Commit 36f13f2

Browse files
committed
Fix opml generator
1 parent e9cc9a5 commit 36f13f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: generate_opml.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import re
2+
import html
23

34
xmlbody = """<?xml version="1.0" encoding="UTF-8"?>
45
<!-- Created by generate_opml.py, please don't edit manually. -->
@@ -21,7 +22,7 @@
2122

2223
items = ''
2324
for blog in blogs:
24-
item = xmlitem.format(title=blog[0].strip(),
25+
item = xmlitem.format(title=html.escape(blog[0].strip()),
2526
httpfeed='http{0}://{1}'.format(blog[1].strip(), blog[2].strip()),
2627
rssfeed=blog[3].strip())
2728
items += '\t\t\t{}\r\n'.format(item)

0 commit comments

Comments
 (0)