Add action CopyTableToHtml

Копирование результатов запроса в буфер обмена в виде таблицы html.
This commit is contained in:
lsv 2023-02-02 10:36:55 +05:00
parent 8771f32058
commit 83e372aae5
11 changed files with 168 additions and 66 deletions

View file

@ -85,6 +85,13 @@ wxString BoolToStr(bool value)
return value ? wxT("true") : wxT("false");
}
wxString escapeHtml(wxString text, bool pre) {
text.Replace("&", "&");
text.Replace("<", "&lt;");
text.Replace(">", "&gt;");
if (!pre) text.Replace("\n", "&para;<br>");
return text;
}
bool StrToBool(const wxString &value)