summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
authorSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-18 20:20:20 +0000
committerSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-18 20:20:20 +0000
commita0f950a57be97a09ff1ea8a1339232379d37574c (patch)
treef1783d6d83356d348c07ab6159a2919acfd42e21 /tools.h
parent974eeee2b59084e53fb24b36ca9ea83922bb8f77 (diff)
downloadvdr-plugin-live-a0f950a57be97a09ff1ea8a1339232379d37574c.tar.gz
vdr-plugin-live-a0f950a57be97a09ff1ea8a1339232379d37574c.tar.bz2
- added function StringEscapeAndBreak, which *first* html-escapes a string and *second* replaces \n by <br/>
- using StringEscapeAndBreak for description in whats_on
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools.h b/tools.h
index a269d22..589767c 100644
--- a/tools.h
+++ b/tools.h
@@ -27,6 +27,7 @@ std::vector< std::string > StringSplit( std::string const& text, char delimiter
int StringToInt( std::string const& string, int base = 10 );
std::string StringRepeat(int times, const std::string& input);
std::string StringWordTruncate(const std::string& input, size_t maxLen, bool& truncated);
+std::string StringEscapeAndBreak( std::string const& input );
struct bad_lexical_cast: std::runtime_error
{