The block supplied as the DTWillFlushBlockCallBack option gets called just before the html builder converts the element into an attributed string. This PR modifies the DTHTMLElement whenever a tag is found that isn't part of the allowedHTMLTags array.
Instead of removing h1/h2 tags, they are now simply formatted similarly to h3 tags using the CSS option.
The image handler isn't used in MatrixKit, but instead is used in Element.
Fixes https://github.com/vector-im/element-ios/issues/5165.
The block supplied as the
DTWillFlushBlockCallBack
option gets called just before the html builder converts the element into an attributed string. This PR modifies theDTHTMLElement
whenever a tag is found that isn't part of theallowedHTMLTags
array.Instead of removing h1/h2 tags, they are now simply formatted similarly to h3 tags using the CSS option.
The image handler isn't used in MatrixKit, but instead is used in Element.