hicli/html: fix extra </>'s in sanitized HTML

This commit is contained in:
Tulir Asokan 2024-10-27 01:40:42 +03:00
parent 11dad8541f
commit ca76182b81
2 changed files with 2 additions and 2 deletions

View file

@ -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() {

View file

@ -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) ||