Struggling with encoding and formatting in TinyMCE.
Here's my setup:
When I use any of the formatting tools (bold, ital, etc.) to add HTML tagging, the wysiwyg editor initially shows correctly:
But when saving to my MongoDB and viewing the post, I get:
And when returning to edit the post, I get:
And if I save again from here, the carets are getting encoded even further:
So I think I've got two issues. One is getting the editor to set the content as source code so that the wysiwyg editor will reapply the formatted style. The second is figuring out why the page isn't rendering the HTML once it's been saved to the DB.
Anybody see anything obvious that solves one or both of these issues? If it matters, I've got a Node/Express site using Pug for front-end.
Additional Info -- Content set in MongoDB:
Additional Info -- HTML in Chrome dev tools inspect: