Browse Source

Strip all HTML tags from pronouns.

grunfink 6 tháng trước cách đây
mục cha
commit
7fe8761ed7
1 tập tin đã thay đổi với 2 bổ sung3 xóa
  1. 2 3
      html.c

+ 2 - 3
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;
 }