diff options
| author | 2026-01-12 05:20:52 +0100 | |
|---|---|---|
| committer | 2026-01-12 05:20:52 +0100 | |
| commit | 7fe8761ed7992762603c01610a115fde199dcaaf (patch) | |
| tree | fb9bd7ae48526097bc5953a502934a2180550036 | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-7fe8761ed7992762603c01610a115fde199dcaaf.tar.gz snac2-7fe8761ed7992762603c01610a115fde199dcaaf.tar.xz snac2-7fe8761ed7992762603c01610a115fde199dcaaf.zip | |
Strip all HTML tags from pronouns.
| -rw-r--r-- | html.c | 5 |
1 files changed, 2 insertions, 3 deletions
| @@ -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 | } |