Saturday 29 December 2018

Storing HTML "pages" in MongoDB with Mongoose

Good day all,​I'm working on a simple Wordpress replacement, I've have authentication working, and I can read, write and update collections in Mongo. I'd like to take my learning and create a simple CMS, where I can add HTML into a collection.​Is there a "recommend" way to do this? I see there is a "code" data type, that is used to store JS code in the document. I was sort of expecting a UTF datatype to store static HTML documents. Will there be any issues with string escaping if I use a standard string data type? Has anyone done this and ran into issues?​Kind regards and happy new years.

Submitted December 29, 2018 at 03:46PM by sma92878

No comments:

Post a Comment