Jump to content

Printing HTML stored in a database


barefootsanders

Recommended Posts

So I have HTML blocks of code stored in my database as a field, type text.  I'm having problems printing it to the screen.  Is there anything I should do to format the html i.e. addslashes($text) etc??

 

Any suggestions would be much appreciated.

 

An example code of what is stored in the database is the following:

 

<p>HELLO! - <a target="_blank" href="LINK_HERE.html">Click Here</a></p>

Link to comment
https://forums.phpfreaks.com/topic/55508-printing-html-stored-in-a-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.