commit 7fe8761

grunfink  ·  2026-01-12 04:20:52 +0000 UTC
parent 026c195
Strip all HTML tags from pronouns.
1 files changed,  +2, -3
M html.c
M html.c
+2, -3
 1@@ -181,9 +181,8 @@ xs_str *actor_pronouns(xs_dict *actor)
 2         }
 3     }
 4 
 5-    /* <p> breaks page, cannot nest them */
 6-    ret = xs_replace_i(xs_dup(pronouns), "<p>", "");
 7-    ret = xs_replace_i(ret, "</p>", "");
 8+    /* strip all HTML tags */
 9+    ret = xs_regex_replace(pronouns, "</?[>]+>", "");
10 
11     return ret;
12 }