View Single Post
  #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>
Reply With Quote