You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can be fixed by omitting originalText and returning just <a href={entity.data.url} /> (I suppose library will automatically walk over children and add them).
TL;DR:
Seems like example in readme is broken
What is the correct way to serialize entities with nested content?
The text was updated successfully, but these errors were encountered:
The following example:
Uses
return <a href={entity.data.url}>{originalText}</a>;
as recommended in readme to serialize anchors. However this leads to double escaping (https://codesandbox.io/s/beautiful-flower-yy4o9):This can be fixed by omitting
originalText
and returning just<a href={entity.data.url} />
(I suppose library will automatically walk over children and add them).TL;DR:
The text was updated successfully, but these errors were encountered: