|Join Nairaland / LOGIN! / Trending / Recent / New|
Stats: 2,442,110 members, 5,497,259 topics. Date: Saturday, 28 March 2020 at 08:58 PM
|Help Web Programmers , How Can I Achieve This by Immanuelar(m): 2:49pm On Oct 07, 2018|
I have a website that has a blog in it. This is what I want to achieve. I want to create topics as an admin. In the textarea box where I will input the body of topic before posting. I want a situation where I can use html tags such as bold,italics and change font color on the textarea box and the output will be visible after posting the topic. thanks
|Re: Help Web Programmers , How Can I Achieve This by Ayemileto(m): 3:52pm On Oct 07, 2018|
Ordinarily, if you input HTML tags in the textarea, it should work without you needing to change anything.
HTML is actually interpreted by the browser, so saving HTML tags in your database alongside page contents will work as if the HTML tags were saved in a file.
Just the way you use slash, semicolon etc and they display in the browser.
HTML tags you input should work by default.
|Re: Help Web Programmers , How Can I Achieve This by elninosft(m): 5:10pm On Oct 07, 2018|
To add features like bold, italics etc.. Use a text editor on your textarea. . E.g CKeditor. .. Then on the blog use this to echo the output.. htmlspecialchar_decode
|Re: Help Web Programmers , How Can I Achieve This by Immanuelar(m): 5:17pm On Oct 07, 2018|
elninosft:Thanks, will Google it and see how it works. thanks
|Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health |
religion celebs tv-movies music-radio literature webmasters programming techmarket
Nairaland - Copyright © 2005 - 2020 Oluwaseun Osewa. All rights reserved. See How To Advertise. 38