Stripping <style> and <link> tags from value

Shannonaoc

New Member
I am trying to clean up some HTML values that are imported from other sources, primarily email message bodies. Ideally, I would like to be able to strip \[code\]<style>\[/code\] and \[code\]<link>\[/code\] tags, but also apply their styles (assuming the link tag points to a style sheet) to the appropriate elements within the value.I am currently trying to accomplish this via tidy. If it comes down to it, I can strip out the tags without applying the styles.
 
Back
Top