Fixes issue #567
This commit is contained in:
parent
9e11e832da
commit
c2be6bc019
@ -131,7 +131,8 @@ inline void stringSplit(const std::string &s, const char delim, std::vector<std:
|
||||
static std::string originals[] = {"&", "\"", "<", ">", "'", "[", "]", "\\"};
|
||||
static std::string entities[] = {"&", """, "<", ">", "'", "&91;", "&93;", " \" };
|
||||
|
||||
inline std::string HTMLEntitize( std::string & result) {
|
||||
inline std::string HTMLEntitize( const std::string & input) {
|
||||
std::string result(input);
|
||||
for(unsigned i = 0; i < sizeof(originals)/sizeof(std::string); ++i) {
|
||||
replaceAll(result, originals[i], entities[i]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user