Is it possible to create bold text in a MySQL database text table field?
We are putting our articles in our database and I want to create bold titles and subtitles. Is this possible? Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Markdown
I would advise you to use a markdown-style formatting (PHP/.NET), which would mean bold-text would be stored like this:
Storing HTML
If you can’t use markdown on your project, you can store HTML as well – I would just be very careful about what tags you store. You wouldn’t want somebody posting
<script/>tags in your database for instance:Late-Styling
Or make all values from the
titleandsubtitlefields bold when you print them on your page: