Project

General

Profile

Actions

Backport #8183

closed

CGI.unescapeHTML does not decode あ

Added by znz (Kazuhiro NISHIYAMA) about 11 years ago. Updated about 11 years ago.


Description

数値文字参照で あ のように X が大文字の時に CGI.unescapeHTML で "あ" に戻りません。

http://www.w3.org/TR/html5/syntax.html#character-references
の Hexadecimal numeric character reference によると

which must be followed by either a "x" (U+0078) character or a "X" (U+0058) character,

となっているので、大文字でも受け付けてほしいです。

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0