tags:

views:

788

answers:

1

I am using the PHP 5 Tidy class to format html.

Everything is fine except when it gets passed a style attribute, when it changes it into a class attribute. As I am only formatting the body of a document, not the head, there is no class defined in the head for the attribute to read.

I have looked through all the Tidy options but can't work out how to stop this behaviour.

Thanks

+1  A: 

Try switching the clean option off.

Jim