-1

I am using React Quill text editor to save data into database. The issue i am facing is when i am retrieving the saved data it is rendering with " " (double quote).

eg: data is saved like this:

<p>Pick up from other emirates is available at an extra charge.</p>

But it is rendering like this with double quote:

"<p>Pick up from other emirates is available at an extra charge.</p>"

Here is the screenshot: enter image description here

using ReactQuill text editor like this:

<ReactQuill 
    theme="snow" 
    style={{ height: "100px" }} 
    id="pickup"
    value={pickup} onChange={setPickup} />

Rendering data like this:

<div className='col-12'> {values.pickup} </div>

Thanks

1 Answer 1

0

Make sure you're not using JSON.stringify on submit as their Playground suggests.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.