Jump to content

problem in displaying the contants


rajmohan

Recommended Posts

hello guy,

i am using one text editor where i store  Mohan Raj Company in different font. It stored in database like

below ,

<STRONG><FONT face="Verdana, Arial, Helvetica, sans-serif" size=7><EM>Mohan Raj Company</EM></FONT></STRONG>


While displaying this one it is printing the same,


<STRONG><FONT face="Verdana, Arial, Helvetica, sans-serif" size=7><EM>Mohan Raj Company</EM></FONT></STRONG>

How to avoid this help me


Link to comment
https://forums.phpfreaks.com/topic/20824-problem-in-displaying-the-contants/
Share on other sites

Me itself find the solution


the output of the contant should be followed by strip_tags


for example  $text = <STRONG><FONT face="Verdana, Arial, Helvetica, sans-serif" size=7><EM>Mohan Raj Company</EM></FONT></STRONG>;

echo strip_tags($text);

will produce            Mohan Raj Company

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.