aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2026-01-12 05:20:52 +0100
committergrunfink <grunfink@comam.es>2026-01-12 05:20:52 +0100
commit7fe8761ed7992762603c01610a115fde199dcaaf (patch)
treefb9bd7ae48526097bc5953a502934a2180550036 /html.c
parent026c1951b8beab8e7e4bd39d9a06c613209f4892 (diff)
Strip all HTML tags from pronouns.
Diffstat (limited to 'html.c')
-rw-r--r--html.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/html.c b/html.c
index 9e96108..2107609 100644
--- a/html.c
+++ b/html.c
@@ -181,9 +181,8 @@ xs_str *actor_pronouns(xs_dict *actor)
}
}
- /* <p> breaks page, cannot nest them */
- ret = xs_replace_i(xs_dup(pronouns), "<p>", "");
- ret = xs_replace_i(ret, "</p>", "");
+ /* strip all HTML tags */
+ ret = xs_regex_replace(pronouns, "</?[>]+>", "");
return ret;
}