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