Ruby

31 views
Skip to first unread message

Pedro Botelho

unread,
Apr 5, 2021, 11:33:41 PM4/5/21
to htmlpurifier

ᎷᎪᎢᎬᏌᏚᏃ ᎢᏌᎡᏟᏃᎪ

unread,
Apr 7, 2021, 7:32:59 AM4/7/21
to htmlpurifier
Hi,

Two things:
1) XHTML1.1 spec doesn't allow <rb> after <rt> as direct children of <ruby>
2) HTMLPurifier ruby implementation is rather crude, so it removes whole <ruby> element if its contents are improperly structured.

You can try an alternative, HTML5 spec compliant implementation provided in https://github.com/xemlock/htmlpurifier-html5 (shameless plug!), which should solve your issue.

Pedro Botelho

unread,
Apr 7, 2021, 11:46:11 AM4/7/21
to htmlpurifier
Thank you very much for your help and clarification.
Reply all
Reply to author
Forward
0 new messages