summaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-09-17 02:52:44 +0200
committerdefault <nobody@localhost>2023-09-17 02:52:44 +0200
commit952da47c6d2a209e6a41fabe7a5365380d63a5e5 (patch)
tree07677a47664d9d4490ab16e521d7cfdabeb4fd6c /format.c
parent2edbb75a183d631fb77d4e9be0862116dab9190d (diff)
Backport from xs.
Diffstat (limited to 'format.c')
-rw-r--r--format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/format.c b/format.c
index da45ed0..f42ccc3 100644
--- a/format.c
+++ b/format.c
@@ -235,7 +235,7 @@ xs_str *sanitize(const char *content)
if (valid_tags[i]) {
/* accepted tag: rebuild it with only the accepted elements */
- xs *el = xs_regex_match(v, "(src|href|rel|class|target)=\"[^\"]*\"");
+ xs *el = xs_regex_select(v, "(src|href|rel|class|target)=\"[^\"]*\"");
xs *s3 = xs_join(el, " ");
s2 = xs_fmt("<%s%s%s%s>",