aboutsummaryrefslogtreecommitdiff
path: root/src/qt/guiutil.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-11-11 10:13:25 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2011-12-23 12:07:23 +0100
commite0734571912736356839fde75fd10993b0df81d5 (patch)
treed8507706ef7131954cacf74993a4c31fca225381 /src/qt/guiutil.h
parentc75abc9f7e84dd16c9f748802fd82ab2c49ec558 (diff)
Move HtmlEscape (escape for qt rich text controls) to qt gui utilities
Diffstat (limited to 'src/qt/guiutil.h')
-rw-r--r--src/qt/guiutil.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/guiutil.h b/src/qt/guiutil.h
index 94e3314d14..acd327728d 100644
--- a/src/qt/guiutil.h
+++ b/src/qt/guiutil.h
@@ -31,6 +31,10 @@ public:
// Parse "bitcoin:" URL into recipient object, return true on succesful parsing
// See Bitcoin URL definition discussion here: https://bitcointalk.org/index.php?topic=33490.0
static bool parseBitcoinURL(const QUrl *url, SendCoinsRecipient *out);
+
+ // HTML escaping for rich text controls
+ static QString HtmlEscape(const QString& str, bool fMultiLine=false);
+ static QString HtmlEscape(const std::string& str, bool fMultiLine=false);
};
#endif // GUIUTIL_H