This website works better with JavaScript.
Home
Explore
Register
Sign In
Fincer
/
sitemap-generator
mirror of
https://github.com/Fincer/sitemap-generator
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Handle & symbols correctly in tag values
master
Pekka Helenius
4 years ago
parent
2f74f5a849
commit
750ad03dfe
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
pysitemap/base_crawler.py
+ 1
- 0
pysitemap/base_crawler.py
View File
@ -183,6 +183,7 @@ class Crawler:
key
=
arg
[
0
]
# Remove leading and trailing quote marks from value
value
=
re
.
sub
(
r
'
^[
"
\'
]?(.*?)[
"
\'
]?$
'
,
'
\\
1
'
,
arg
[
1
]
)
value
=
re
.
sub
(
r
'
&
'
,
'
&
'
,
value
)
for
field
in
fields
:
if
key
==
field
:
Write
Preview
Loading…
Cancel
Save