I think the code 98% is the operation of the string, the question is where the string from, and then save it to where, and then how to display to the user, so I asked a data saving problem, how to save in the database?
Now Dynamic Web site, "Dynamic content" has been inseparable from the HTML, and HTML from the user will not be safe, to our protection caused difficulties, and if the use of "do not provide users with rich text editor" that the entire site out of template content, other content in addition to text is text, no pictures in the article, no style , exclusively text, so we still have to rely on rich text.
But now I have a question, such as an article Table Tb_article (id,name,content), we allow users to publish a picture video and other media, then I have a question:
What does the user post come up with? We don't care what the server does with the data, and how do we save it in the database?
We assume that an article name can be: