lyrics fetcher: strip html tags from lyrics from lyricsfly.com
This commit is contained in:
@@ -244,8 +244,8 @@ void StripHtmlTags(std::string &s)
|
||||
s.replace(i, j-i, "");
|
||||
}
|
||||
Replace(s, "'", "'");
|
||||
Replace(s, """, "\"");
|
||||
Replace(s, "&", "&");
|
||||
Replace(s, """, "\"");
|
||||
for (size_t i = 0; i < s.length(); ++i)
|
||||
{
|
||||
if (erase)
|
||||
|
||||
@@ -143,8 +143,8 @@ bool LyricwikiFetcher::notLyrics(const std::string &data)
|
||||
|
||||
void LyricsflyFetcher::postProcess(std::string &data)
|
||||
{
|
||||
Replace(data, "[br]", "");
|
||||
Trim(data);
|
||||
Replace(data, "[br]", "\n");
|
||||
LyricsFetcher::postProcess(data);
|
||||
}
|
||||
|
||||
/**********************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user