Commit Graph

5 Commits

Author SHA1 Message Date
Mark Felder
baf7fd2142 Introduce a scrubber that filters only everything except breaks
Add more tests for scrub_html_and_truncate/2
2021-06-11 14:35:05 -05:00
Alex Gleason
f8c93246d6 Refactor Earmark code, fix tests 2020-12-11 17:22:42 -06:00
Alex Gleason
b2548cfcda Sanitizer: allow <hr> tags 2020-12-11 17:22:37 -06:00
Haelwenn (lanodan) Monnier
3cfc20083e
scrubbers/default: Add ruby element and it's childs
This allows to format Japanese furigana (aka ruby) notation.

Present in XHTML 1.1, HTML 5 and later. Absent in XHTML 1.0, HTML 4 and earlier.

See https://www.w3.org/TR/ruby/
2020-11-25 00:40:21 +01:00
rinpatch
d6c89068f3 HTML: Compile Scrubbers on boot
This makes it possible to configure their behavior on OTP releases.
2019-12-08 20:35:41 +03:00