more html special chars replacements

This commit is contained in:
unknown
2008-08-15 22:49:11 +02:00
parent bb10209124
commit ca00d9f8ef

View File

@@ -91,6 +91,10 @@ string GetLyrics(string artist, string song)
result.replace(i, 6, "'"); result.replace(i, 6, "'");
for (int i = result.find("""); i != string::npos; i = result.find(""")) for (int i = result.find("""); i != string::npos; i = result.find("""))
result.replace(i, 6, "\""); result.replace(i, 6, "\"");
for (int i = result.find("<"); i != string::npos; i = result.find("<"))
result.replace(i, 4, "<");
for (int i = result.find("&gt;"); i != string::npos; i = result.find("&gt;"))
result.replace(i, 4, ">");
std::ofstream output(fullpath.c_str()); std::ofstream output(fullpath.c_str());