Jump to content

Archived

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

rajmohan

problem in displaying the contants

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


Share this post


Link to post
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

Share this post


Link to post
Share on other sites

×

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.