From a12af6967ca21a5f8331ed3013d538e78c22c9f4 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 13 Aug 2017 17:28:44 +1200 Subject: [PATCH] fix crash with [html] tags --- bbcode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bbcode.go b/bbcode.go index 0c6a87e..f0c7658 100644 --- a/bbcode.go +++ b/bbcode.go @@ -177,7 +177,7 @@ func (this *BBCodeRenderer) displayfmt(s string) string { } epos += spos - jsonInnerContent, _ := json.Marshal(s[spos : epos-spos]) + jsonInnerContent, _ := json.Marshal(s[spos:epos]) ret += `
` + this.DynamicContentWarning + `
` hpos = epos + 7