diff --git a/src/Utility/TeeJee.Misc.vala b/src/Utility/TeeJee.Misc.vala index 360e205c..524e2521 100644 --- a/src/Utility/TeeJee.Misc.vala +++ b/src/Utility/TeeJee.Misc.vala @@ -149,27 +149,9 @@ namespace TeeJee.Misc { return new_txt; } - public string escape_html(string html, bool pango_markup = true){ - string txt = html; - - if (pango_markup){ - txt = txt - .replace("\\u00", "") - .replace("\\x" , ""); - } - else{ - txt = txt - .replace(" ", " "); //pango markup throws an error with   - } + public string escape_html(string html){ - txt = txt - .replace("&" , "&") - .replace("\"", """) - .replace("<" , "<") - .replace(">" , ">") - ; - - return txt; + return GLib.Markup.escape_text(html); } public string unescape_html(string html){