aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorAdam Mathes <adam@trenchant.org>2018-02-10 14:03:38 -0800
committerAdam Mathes <adam@trenchant.org>2018-02-10 14:03:38 -0800
commitc55b94202858eac95358358d2add5cd46afa38b4 (patch)
treea3131038663c6b610cedb84f4161a9fa9cc7e581 /models
parent0e515b7472d8f3dc73cc04bf1d549cf936cc7ef7 (diff)
downloadneko-c55b94202858eac95358358d2add5cd46afa38b4.tar.gz
neko-c55b94202858eac95358358d2add5cd46afa38b4.tar.bz2
neko-c55b94202858eac95358358d2add5cd46afa38b4.zip
add pre,code tags. css tweaks
Diffstat (limited to 'models')
-rw-r--r--models/item/item.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/item/item.go b/models/item/item.go
index 91335cf..c5ffff9 100644
--- a/models/item/item.go
+++ b/models/item/item.go
@@ -70,7 +70,7 @@ func (i *Item) FullSave() {
func filterPolicy() *bluemonday.Policy {
p := bluemonday.NewPolicy()
- p.AllowElements("ul", "ol", "li", "blockquote", "a", "img", "p", "h1", "h2", "h3", "h4", "b", "i", "em", "strong")
+ p.AllowElements("ul", "ol", "li", "blockquote", "a", "img", "p", "h1", "h2", "h3", "h4", "b", "i", "em", "strong", "pre", "code")
p.AllowAttrs("href").OnElements("a")
p.AllowAttrs("src", "alt").OnElements("img")
return p