diff options
| author | grunfink <grunfink@comam.es> | 2026-01-12 05:20:52 +0100 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2026-01-12 05:20:52 +0100 |
| commit | 7fe8761ed7992762603c01610a115fde199dcaaf (patch) | |
| tree | fb9bd7ae48526097bc5953a502934a2180550036 /html.c | |
| parent | 026c1951b8beab8e7e4bd39d9a06c613209f4892 (diff) | |
Strip all HTML tags from pronouns.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; } |