Skip to content

Support a set of standard HTML tags in intl strings. #1752

Description

@matthew-gerstman

Which package?
react-intl

Is your feature request related to a problem? Please describe.
I regularly end up writing the exact same lines of code

b: (...chunks) => <b>{chunks}</b>,
p: (...chunks) => <p>{chunks}</p>,

Describe the solution you'd like
I'd like to see an abstraction on top of formatMessage (or built in) that takes care of a standard set of html tags.

It might be make sense automatically convert tags to functions like the ones I listed above and then allow those to be overridden using the current interface.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions