Browse Source

Also accept s HTML tags.

default 1 year ago
parent
commit
931b871eb1
2 changed files with 2 additions and 2 deletions
  1. 1 1
      doc/snac.5
  2. 1 1
      format.c

+ 1 - 1
doc/snac.5

@@ -59,7 +59,7 @@ converted to related emojis:
 All HTML tags in entries are neutered except the following ones:
 .Bd -literal
 a p br blockquote ul ol li cite small
-span i b u pre code em strong hr img del
+span i b u s pre code em strong hr img del
 .Ed
 .Pp
 .Ss Disk Layout

+ 1 - 1
format.c

@@ -203,7 +203,7 @@ xs_str *not_really_markdown(const char *content, xs_list **attach)
 
 const char *valid_tags[] = {
     "a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite", "small",
-    "span", "i", "b", "u", "pre", "code", "em", "strong", "hr", "img", "del", NULL
+    "span", "i", "b", "u", "s", "pre", "code", "em", "strong", "hr", "img", "del", NULL
 };
 
 xs_str *sanitize(const char *content)