diff options
Diffstat (limited to 'src/utils/stringutils.cpp')
-rw-r--r-- | src/utils/stringutils.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index 74e5d9f58..d4585a26d 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -668,3 +668,13 @@ signed char parseBoolean(const std::string &value) else return -1; } + +std::string encodeLinkText(std::string data) +{ + return replaceAll(data, "|", "\342\235\230"); +} + +std::string decodeLinkText(std::string data) +{ + return replaceAll(data, "\342\235\230", "|"); +} |