contentful-management.js icon indicating copy to clipboard operation
contentful-management.js copied to clipboard

Entry.update with Richtext field is including escape chars

Open andresdaguilar opened this issue 4 years ago • 2 comments
trafficstars

I have an entry with a rich text field that contains something like this:

{ "data": { "uri": "https://example.com" }, "content": [ { "data": {}, "marks": [], "value": "Example link", "nodeType": "text" } ], "nodeType": "hyperlink" },

But when I update the entry (with "entry.update()"), the content is parsed and the double quotes are escaped, so the link is not working because now is <a href="https://example.com">Example link

Is there a way to avoid this?

andresdaguilar avatar Apr 26 '21 17:04 andresdaguilar

No response here? We're also trying to update a rich text field from the Node.JS library.

wwwhatley avatar Jan 07 '22 20:01 wwwhatley

Hey @andresdaguilar and @wwwhatley, sorry for the late response. I'd appreciate it if you could share a minimal reproduction code so we can take a look.

z0al avatar Feb 07 '22 12:02 z0al

Closing for inactivity

Spring3 avatar Oct 12 '22 19:10 Spring3