aboutsummaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-02 18:47:39 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-02 18:47:39 -0400
commit61e482f6f36aee6f72392a6188f2ec5c858b88fd (patch)
treebea4123fcc62dd834405ae89ce9fe260e90a0023 /ast.c
parentf0f8f218703ebb4512b3cd3f9e06b86a7d9861b0 (diff)
Initial WIP first past
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, "&", "&amp;", 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;
}