formatjs / formatjs-old

The monorepo home to all of the FormatJS related libraries.
https://formatjs.io/
156 stars 53 forks source link

Use single-quotes for escaping instead of back-slashes? #21

Closed ericf closed 5 years ago

ericf commented 9 years ago

The ICU Message syntax uses single-quotes for escaping, we probably want to do the same. http://userguide.icu-project.org/formatparse/messages#TOC-Quoting-Escaping

ericf commented 9 years ago

Java Docs give this guidance:

Recommendation: Use the real apostrophe (single quote) character ’ for human-readable text, and use the ASCII apostrophe (' ' ) only in program syntax, like quoting in MessageFormat. See the annotations for U+0027 Apostrophe in The Unicode Standard.

http://icu-project.org/apiref/icu4j/com/ibm/icu/text/MessageFormat.html

jschlieber commented 6 years ago

@ericf Any news on this one?

longlho commented 5 years ago

fixed in #134