return result;
}
-std::string iso_to_html(const std::string& isostring)
+std::string iso_to_html(const std::string& isostring, bool showerr_bug)
{
string result = isostring;
- replace_all (result, "&", "&");
- replace_all (result, "\"", """);
replace_all (result, "ä", "ä");
replace_all (result, "ö", "ö");
replace_all (result, "ü", "ü");
replace_all (result, "Ö", "Ö");
replace_all (result, "Ü", "Ü");
replace_all (result, "ß", "ß");
- replace_all (result, "<", "<");
- replace_all (result, ">", ">");
+
+ // TODO: This needs to be removed soon by a proper
+ // HTML quoted chars engine. Then we can also remove ü from i18n files.
+ if (!showerr_bug) {
+ replace_all (result, "\"", """);
+ replace_all (result, "&", "&");
+ replace_all (result, "<", "<");
+ replace_all (result, ">", ">");
+ }
return result;
}
std::string iso_to_utf8(const std::string& isostring);
std::string utf8_to_iso(const std::string& utf8string);
-std::string iso_to_html(const std::string& isostring);
+std::string iso_to_html(const std::string& isostring, bool showerr_bug=false);
std::string escape(const std::string &s);