Jump to content

echo html from the database


allex01

Recommended Posts

I have the text stored in teh database like <b>sometext</b>. When i output it with php. It outputs exactly as it's stored in the database. I want php to treat this as html and make the <b>sometext</b> as sometext being bold.

 

What php function do i need to use to make it execute the html instead of outputing the html text.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/138965-echo-html-from-the-database/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.