- Add ImageURLFilter match
img
to replace with rules like (imageproxy, Ban URL, Thumb version ...). - Add ExternalLinkFilter to match external links to add
rel="nofollow"
,target="_blank"
. - Deprecated ImageProxyFilter, please use ImageURLFilter.
- Add ImageProxyFilter for match and replace
img
src.
- Ensure to remove HTML Tag for avoid XSS in plain mode.
- Fix PlainPipeline to use text output for avoid html in plain.
- Add
NewPlainPipeline
for render plain text mode.
- Fix output unescape will break html attribute value error.
Before:
in = `<object props="{"url": "https://example.com/a.jpg"}">We don't like 'escape'</object>`
out = `<object props="{"url": "https://example.com/a.jpg"}">We don't like 'escape'</object>`
After
in = `<object props="{"url": "https://example.com/a.jpg"}">We don't like 'escape'</object>`
out = `<object props="{"url": "https://example.com/a.jpg"}">We don't like 'escape'</object>`
-
Fix filter result without escape string.
0.3.0
-
Add AutoCorrectFilter;
0.2.2
-
Fix SimpleFormatFilter to remove
\n
;0.2.1
-
Fix MentionFilter for twice use;
0.2.0
-
Add MentionFilter;
-
Add HTMLEscapeFilter;
0.1.0
- First release.