Browse Source

sanitizer: allow id in <sup>

One of blogs I read uses anchor on <sup> to link a footnote back to its
reference.
xdavidwu 3 years ago
parent
commit
08f7835f5d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      reader/sanitizer/sanitizer.go

+ 1 - 1
reader/sanitizer/sanitizer.go

@@ -414,7 +414,7 @@ func getTagAllowList() map[string][]string {
 	whitelist["wbr"] = []string{}
 	whitelist["dfn"] = []string{}
 	whitelist["sub"] = []string{}
-	whitelist["sup"] = []string{}
+	whitelist["sup"] = []string{"id"}
 	whitelist["var"] = []string{}
 	whitelist["samp"] = []string{}
 	whitelist["s"] = []string{}