2 ms·
Our programming languages might need a unicode aware string concatenation operator, similar to locale aware capitalization. Joining LTR text to RTL text seems l
by stubish 5y ago
Our programming languages might need a unicode aware string concatenation operator, similar to locale aware capitalization. Joining LTR text to RTL text seems like it should result in combined LTR + RTL text, not letting the LTR marker override and change meaning.
- account42 5y agoIt does look like HTML supports this via the <bdo> tag [0]: data:text/html,<bdo>&%23x202E;reversed</bdo> not reversed So I guess this should be used to wrap any user-supplied text that allows arbitrary unicode. Or using Unicode: data:text/html,&%23x2068;&%23x202E;reversed&%23x2069; not reversed [0] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bdo https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bd...