Skip to content

Commit

Permalink
fix: increase the formatted message size limits
Browse files Browse the repository at this point in the history
  • Loading branch information
akurilov committed Mar 29, 2024
1 parent c1c7e9b commit ba48b7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/messages/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ const (
FormatModeRaw // no html and no attachments
)

var htmlStripTags = bluemonday.StrictPolicy()
var htmlStripTags = bluemonday.
StrictPolicy().
AddSpaceWhenStrippingTag(true)

func (f Format) Convert(evt *pb.CloudEvent, subDescr string, mode FormatMode) (tgMsg any) {
fileTypeAttr, fileTypeFound := evt.Attributes[attrKeyFileType]
Expand Down

0 comments on commit ba48b7b

Please sign in to comment.