| 218 | } |
| 219 | |
| 220 | QString HtmlEscape(const QString& str, bool fMultiLine) |
| 221 | { |
| 222 | QString escaped = str.toHtmlEscaped(); |
| 223 | if(fMultiLine) |
| 224 | { |
| 225 | escaped = escaped.replace("\n", "<br>\n"); |
| 226 | } |
| 227 | return escaped; |
| 228 | } |
| 229 | |
| 230 | QString HtmlEscape(const std::string& str, bool fMultiLine) |
| 231 | { |
no outgoing calls
no test coverage detected