简体   繁体   English

博客内容如何存储在数据库中?

[英]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. 以stackoverflow.com为例,在此,问题或答案片段具有所见即所得的编辑器。 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). 如果我在答案中使用了href链接或其他html标记,则数据格式如何存储在数据库中(以HTML或纯文本或任何其他形式)。

In case data is stored in HTML format, then how it is converted simple json for connecting with mobile app webservice's. 如果数据以HTML格式存储,则如何将其转换为简单的json以与移动应用程序网络服务连接。

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: 我不确定它在Stack Overflow上如何工作,但我认为文本以纯文本格式存储在数据库中,但带有特殊字符,例如:

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

And then these symbols are replaced with actual markup 然后将这些符号替换为实际标记

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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