summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar grunfink2026-01-12 05:20:52 +0100
committerGravatar grunfink2026-01-12 05:20:52 +0100
commit7fe8761ed7992762603c01610a115fde199dcaaf (patch)
treefb9bd7ae48526097bc5953a502934a2180550036
parentUpdated RELEASE_NOTES. (diff)
downloadsnac2-7fe8761ed7992762603c01610a115fde199dcaaf.tar.gz
snac2-7fe8761ed7992762603c01610a115fde199dcaaf.tar.xz
snac2-7fe8761ed7992762603c01610a115fde199dcaaf.zip
Strip all HTML tags from pronouns.
-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)
181 } 181 }
182 } 182 }
183 183
184 /* <p> breaks page, cannot nest them */ 184 /* strip all HTML tags */
185 ret = xs_replace_i(xs_dup(pronouns), "<p>", ""); 185 ret = xs_regex_replace(pronouns, "</?[>]+>", "");
186 ret = xs_replace_i(ret, "</p>", "");
187 186
188 return ret; 187 return ret;
189} 188}