Make WordPress Core


Ignore:
Timestamp:
03/21/2022 12:28:55 AM (3 years ago)
Author:
SergeyBiryukov
Message:

KSES: Add support for <ruby> and related elements.

<ruby> element and its friends are used to attach annotation text onto a piece of text. This is especially commonly used in Japanese content, but it can also been seen in content of other languages like Chinese.

The set of elements to enable such functionality consists of <ruby>, <rt>, and <rp> in the HTML Standard, while some browsers (like Firefox) additionally support <rb> and <rtc> for more advanced formatting, which are not yet included in the official HTML spec, but can be found in a W3C extension.

Props upsuper, mukesh27, SergeyBiryukov.
Fixes #54698.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/kses.php

    r52968 r52969  
    250250            'cite' => true,
    251251        ),
     252        'rb'         => array(),
     253        'rp'         => array(),
     254        'rt'         => array(),
     255        'rtc'        => array(),
     256        'ruby'       => array(),
    252257        's'          => array(),
    253258        'samp'       => array(),
Note: See TracChangeset for help on using the changeset viewer.