Jump to content


Photo

problem in displaying the contants


  • Please log in to reply
1 reply to this topic

#1 rajmohan

rajmohan
  • Members
  • PipPipPip
  • Advanced Member
  • 169 posts

Posted 15 September 2006 - 04:55 AM

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




#2 rajmohan

rajmohan
  • Members
  • PipPipPip
  • Advanced Member
  • 169 posts

Posted 15 September 2006 - 05:17 AM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users