summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
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)
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}