diff options
| author | 2023-09-17 03:03:20 +0200 | |
|---|---|---|
| committer | 2023-09-17 03:03:20 +0200 | |
| commit | 931b871eb15a1533b2140b64356c397ce535bcce (patch) | |
| tree | 0e2405bd7d1c55bb1050779012b70f188ce583cf | |
| parent | Use xs_match() in some places for more clarity. (diff) | |
| download | penes-snac2-931b871eb15a1533b2140b64356c397ce535bcce.tar.gz penes-snac2-931b871eb15a1533b2140b64356c397ce535bcce.tar.xz penes-snac2-931b871eb15a1533b2140b64356c397ce535bcce.zip | |
Also accept s HTML tags.
| -rw-r--r-- | doc/snac.5 | 2 | ||||
| -rw-r--r-- | format.c | 2 |
2 files changed, 2 insertions, 2 deletions
| @@ -59,7 +59,7 @@ converted to related emojis: | |||
| 59 | All HTML tags in entries are neutered except the following ones: | 59 | All HTML tags in entries are neutered except the following ones: |
| 60 | .Bd -literal | 60 | .Bd -literal |
| 61 | a p br blockquote ul ol li cite small | 61 | a p br blockquote ul ol li cite small |
| 62 | span i b u pre code em strong hr img del | 62 | span i b u s pre code em strong hr img del |
| 63 | .Ed | 63 | .Ed |
| 64 | .Pp | 64 | .Pp |
| 65 | .Ss Disk Layout | 65 | .Ss Disk Layout |
| @@ -203,7 +203,7 @@ xs_str *not_really_markdown(const char *content, xs_list **attach) | |||
| 203 | 203 | ||
| 204 | const char *valid_tags[] = { | 204 | const char *valid_tags[] = { |
| 205 | "a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite", "small", | 205 | "a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite", "small", |
| 206 | "span", "i", "b", "u", "pre", "code", "em", "strong", "hr", "img", "del", NULL | 206 | "span", "i", "b", "u", "s", "pre", "code", "em", "strong", "hr", "img", "del", NULL |
| 207 | }; | 207 | }; |
| 208 | 208 | ||
| 209 | xs_str *sanitize(const char *content) | 209 | xs_str *sanitize(const char *content) |