Lyrics module now strips out html tags

This commit is contained in:
Remy
2011-08-21 01:23:26 -07:00
parent 3415ca0bcd
commit 83188ba151

View File

@@ -39,6 +39,7 @@ def getLyrics(artist, song):
m = re.compile('''<div class='lyricbox'><div class='rtMatcher'>.*?</div>(.*?)<!--''').search(lyricspage)
lyrics = convert_html_entities(m.group(1)).replace('<br />', '\n')
lyrics = re.sub('<.*?>', '', lyrics)
return lyrics