简体   繁体   中英

How blog contents are stored in database?

I have a doubt in creating a blog. Take stackoverflow.com as example, In this, ask question or answer segment have a WYSIWYG like editor. If i use some href link or other html tags within my answer how the data format stored in database(In HTML or plain text or any other).

In case data is stored in HTML format, then how it is converted simple json for connecting with mobile app webservice's.

In simple question, In which format user data is stored in database and how it is used for further processing.

I'm not sure how it works on Stack Overflow, but I think the text is stored in database in plain text format but with special characters like:

[link](http://example.com); _italic_; **bold**

And then these symbols are replaced with actual markup

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM