summaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
Diffstat (limited to 'format.c')
-rw-r--r--format.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/format.c b/format.c
index 63e73f6..3763e65 100644
--- a/format.c
+++ b/format.c
@@ -179,15 +179,8 @@ d_char *sanitize(const char *content)
xs *sl;
int n = 0;
char *p, *v;
- xs *content2 = xs_dup(content);
- /* strip dangerous control codes */
- for (n = 0; content2[n]; n++) {
- if (xs_type(&content2[n]) != XSTYPE_STRING)
- content2[n] = ' ';
- }
-
- sl = xs_regex_split(content2, "</?[^>]+>");
+ sl = xs_regex_split(content, "</?[^>]+>");
p = sl;