Inserting quotes in the value of an attribute will break the HTML that is returned by renderTags.
For example, for a Meta element like this:
<Meta name="..." content={'Text in "quotes"'} />
the result of renderTags will include the unsanitized value for content as-is, resulting in:
<meta name="..." content="Text in"quotes"">
At first glance, I would consider this a bug, since the expected behaviour for JSX is that HTML sanitization, such as escaping quotes in attribute values, is handled for you.
Inserting quotes in the value of an attribute will break the HTML that is returned by renderTags.
For example, for a Meta element like this:
the result of
renderTags
will include the unsanitized value forcontent
as-is, resulting in:At first glance, I would consider this a bug, since the expected behaviour for JSX is that HTML sanitization, such as escaping quotes in attribute values, is handled for you.