aboutsummaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ast.c b/ast.c
index 6f1d20c9..b380a04f 100644
--- a/ast.c
+++ b/ast.c
@@ -35,9 +35,9 @@ static CORD optional_tagged_type(const char *tag, type_ast_t *ast);
CORD xml_escape(CORD text)
{
- text = Text$replace(text, "&", "&", I(-1));
- text = Text$replace(text, "<", "&lt;", I(-1));
- text = Text$replace(text, ">", "&gt;", I(-1));
+ text = CORD_replace(text, "&", "&amp;");
+ text = CORD_replace(text, "<", "&lt;");
+ text = CORD_replace(text, ">", "&gt;");
return text;
}