Actions
Patch #43745
openMove parse_hire_images and parse_inline_attachments to scrubbers
Status:
New
Priority:
Normal
Assignee:
-
Category:
Code cleanup/refactoring
Target version:
Description
#43643 introduced Loofah for textile text formatting and now we can share common scrubbers between all text formatter options.
This patch moves theparse_hire_images and parse_inline_attachments from ApplicationHelper to their own dedicated scrubbers:
HiresImagesScrubberInlineAttachmentsScrubber
Both scrubbers work only at img node level and do not require to traverse the HTML tree.
Before:
| Textile | Average: 7.85 ms |
| CommonMark | Average: 15.94 ms |
After:
| Textile | Average: 8.71 ms |
| CommonMark | Average: 16.58 ms |
Files
Related issues
Actions