fix crash with [html] tags

This commit is contained in:
mappu 2017-08-13 17:28:44 +12:00
parent 9792c262a2
commit a12af6967c

View File

@ -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 += `<div class="html"><a href="javascript:;" onclick="` + template.HTMLEscapeString(`els(this, `+string(jsonInnerContent)+`);`) + `">` + this.DynamicContentWarning + `</a></div>`
hpos = epos + 7