rodin Posted September 18, 2006 Share Posted September 18, 2006 I want to strip all html tags, EXCEPT want to keep the BOLD and the actual font color= , while getting rid of font size and font face, so where right now I get [code]<font face="Verdana" size=2><b><font color="#00FFFF">rodin</font></b>[/code]I've accomplished keeping the bold, by using the strip_tags then < b >, but haven't accomplished keeping just the font COLOR and closing the font COLOR. Is this possible as well?Thanks for the great support here! Quote Link to comment Share on other sites More sharing options...
Jenk Posted September 18, 2006 Share Posted September 18, 2006 [code]<?php$string = strip_tags($string, '<font>');?>[/code]It helps to read the manual. Quote Link to comment Share on other sites More sharing options...
HuggieBear Posted September 18, 2006 Share Posted September 18, 2006 Jenk,He only wants to keep parts of the [b]<font>[/b] tag, not all of it...It helps to read the post ;DHaving said that, there is a good example on the manual page that a user has posted on how to achieve what you want.RegardsHuggie Quote Link to comment Share on other sites More sharing options...
Jenk Posted September 18, 2006 Share Posted September 18, 2006 [quote]Having said that, there is a good example on the manual page that a user has posted on how to achieve what you want. [/quote] ;) Quote Link to comment Share on other sites More sharing options...
rodin Posted September 18, 2006 Author Share Posted September 18, 2006 Yes no need to be a smarty pants ;) I even tried to find the answer myself via google and many other means before posing the question ;) Quote Link to comment Share on other sites More sharing options...
rodin Posted September 18, 2006 Author Share Posted September 18, 2006 got it working anyway! :) Quote Link to comment Share on other sites More sharing options...
HuggieBear Posted September 18, 2006 Share Posted September 18, 2006 Rodin, care to share?Huggie Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.