| 248 | } |
| 249 | |
| 250 | QString HtmlEscape(const QString& str, bool fMultiLine) |
| 251 | { |
| 252 | QString escaped = str.toHtmlEscaped(); |
| 253 | if(fMultiLine) |
| 254 | { |
| 255 | escaped = escaped.replace("\n", "<br>\n"); |
| 256 | } |
| 257 | return escaped; |
| 258 | } |
| 259 | |
| 260 | QString HtmlEscape(const std::string& str, bool fMultiLine) |
| 261 | { |
no outgoing calls
no test coverage detected