Recently, I developed a webpage for creating blog posts. To handle the description input, I integrated CKEDITOR. However, when I save the data in my mongo database, it is stored as:
'<p>How are you?</p>\r\n'
Surprisingly, upon fetching and displaying this content in my ejs file, an error crops up:
Uncaught SyntaxError: Invalid or unexpected token
The retrieved content appears transformed like so:
"<p>How are you?</p>"
If anyone has encountered a similar issue or can offer assistance, please do let me know. Thank you in advance for your help. Feel free to ask for more details if needed.