Reputation: 283
I have a mysql database that contains fields with paragraphs of text that i want to show on my website. I have a normal textbox where i put text and send to the database, however when i read the data on my website the text is not proparly formatted.
How do i make sure that when i access the data from my website it comes properly formatted. Is there a textbox that saves the data in he mysql database such that when i consume it from the website it gets properly formatted on my website.
I am using html and php on my website.
Upvotes: 0
Views: 275
Reputation: 70
You need to use a WYSIWYG (What You See Is What You Get).
https://en.wikipedia.org/wiki/WYSIWYG
This will turn a regular form textarea input in to an input that allows formatting. Take a look at TinyMce and CKEditor.
Upvotes: 1