Now make a news-like website;
Add news in the background and read it from the front.
When the user adds news. There may be pictures. Some don't have pictures. Also typesetting.
In this way, you need to preset the format when adding news.
Use preset formats such as tables or divs.
Ask for advice~
Use the page text editor KindEiditor
Well, Use the kindEiditor or fck mentioned above, and use the html text editor to add text data. You can see the effect when editing, what you see is what you get. The idea is that if you encounter a picture, upload the picture to the server first, then return a url address to your text and use img to save the address. So when you finally save, what is actually saved is a large piece of html code to the database.