mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 10:33:41 -05:00
hicli/html: fix extra </>
's in sanitized HTML
This commit is contained in:
parent
11dad8541f
commit
ca76182b81
2 changed files with 2 additions and 2 deletions
|
@ -514,7 +514,7 @@ func sanitizeAndLinkifyHTML(body string) (string, []id.ContentURI, error) {
|
|||
var codeBlock *strings.Builder
|
||||
var codeBlockLanguage string
|
||||
var inlineImages []id.ContentURI
|
||||
ts := make(tagStack, 2)
|
||||
ts := make(tagStack, 0, 2)
|
||||
Loop:
|
||||
for {
|
||||
switch tz.Next() {
|
||||
|
|
|
@ -407,7 +407,7 @@ func (h *HiClient) calculateLocalContent(ctx context.Context, dbEvt *database.Ev
|
|||
return nil, nil
|
||||
}
|
||||
|
||||
const CurrentHTMLSanitizerVersion = 3
|
||||
const CurrentHTMLSanitizerVersion = 4
|
||||
|
||||
func (h *HiClient) ReprocessExistingEvent(ctx context.Context, evt *database.Event) {
|
||||
if (evt.Type != event.EventMessage.Type && evt.DecryptedType != event.EventMessage.Type) ||
|
||||
|
|
Loading…
Add table
Reference in a new issue