Level 74
If it returns a json string which it seems to do you need to parse it into and object and then you can refer it like you would any other object.
let something = JSON.parse(myJson);
something.title
Quill Rich text give this type of data.
{"ops":[{"insert":"amar sonar bangla"},{"attributes":{"header":1},"insert":"\n"},{"insert":"\n"},{"attributes":{"bold":true},"insert":"ami tomay valobashi"},{"insert":"\n\n"},{"attributes":{"bold":true},"insert":"oh"},{"attributes":{"list":"ordered"},"insert":"\n"},{"attributes":{"bold":true},"insert":"hjlohj"},{"attributes":{"list":"ordered"},"insert":"\n"},{"attributes":{"bold":true},"insert":"33klljk"},{"attributes":{"list":"ordered"},"insert":"\n"}]}
Data will come from Database. I can save data from Quill to Database.
Now how can I convert them into normal real text in Vuejs?
Solved my problem.
innerHTML
<div v-html="content"></div>
Solved!
Please or to participate in this conversation.