Current location: Hot Scripts Forums » Programming Languages » PHP » Removing html tag attributes

Removing html tag attributes

 
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 04-01-08, 08:56 AM
d*d d*d is offline
Newbie Coder
 
Join Date: May 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Removing html tag attributes

anyone know a good way to do this? got a CMS which is accepting style attributes for the <p> tag, which then override my css styles on the site. Need to keep the <p> tag just remove all it's attributes;

ie
<p style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal">

becomes

<p>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
html tutoral thefrtman HTML/XHTML/XML 5 04-27-09 11:25 AM
Removing \ from HTML leeprice2006 PHP 2 08-30-07 11:41 AM
Can PHP place quotes around HTML attributes frdmsun PHP 1 08-17-04 03:12 AM
removing specified html tags from text memon PHP 1 01-15-04 09:56 PM


All times are GMT -5. The time now is 12:01 PM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.