diff options
author | Araq <rumpf_a@web.de> | 2014-09-12 01:37:48 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-09-12 01:37:48 +0200 |
commit | 9d9c3fe12105c97441f2b2751f36775601655caa (patch) | |
tree | d6a5be207cd5828b6b8f413bc92de4d6d58c88c1 /lib/pure/xmltree.nim | |
parent | 950078003767de36132f179ca00d8c81dbcc162a (diff) | |
parent | 6a29fbf240e9395588dcf048ddd3037144c52e12 (diff) | |
download | Nim-9d9c3fe12105c97441f2b2751f36775601655caa.tar.gz |
merged things from devel
Diffstat (limited to 'lib/pure/xmltree.nim')
-rw-r--r-- | lib/pure/xmltree.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/pure/xmltree.nim b/lib/pure/xmltree.nim index 37f591f1e..b84da9586 100644 --- a/lib/pure/xmltree.nim +++ b/lib/pure/xmltree.nim @@ -154,6 +154,8 @@ proc addEscaped*(result: var string, s: string) = of '>': result.add(">") of '&': result.add("&") of '"': result.add(""") + of '\'': result.add("'") + of '/': result.add("/") else: result.add(c) proc escape*(s: string): string = @@ -167,6 +169,8 @@ proc escape*(s: string): string = ## ``>`` ``>`` ## ``&`` ``&`` ## ``"`` ``"`` + ## ``'`` ``'`` + ## ``/`` ``/`` ## ------------ ------------------- result = newStringOfCap(s.len) addEscaped(result, s) |