Jump to content

strip_tags while keeping only font color=


rodin

Recommended Posts

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!
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.