fix crash with [html] tags
This commit is contained in:
parent
9792c262a2
commit
a12af6967c
@ -177,7 +177,7 @@ func (this *BBCodeRenderer) displayfmt(s string) string {
|
|||||||
}
|
}
|
||||||
epos += spos
|
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>`
|
ret += `<div class="html"><a href="javascript:;" onclick="` + template.HTMLEscapeString(`els(this, `+string(jsonInnerContent)+`);`) + `">` + this.DynamicContentWarning + `</a></div>`
|
||||||
hpos = epos + 7
|
hpos = epos + 7
|
||||||
|
Loading…
Reference in New Issue
Block a user