Does Tidy support consolidating multiple consecutive tags?

If I have multiple tags, such as "span", with different (non-duplicate)
attributes, such as:

 

<span style="my_style"><span font="some_font"><span
color="some_color">text</span></span></span>

 

Can "Tidy" consolidate these into one (as below)? Would there be any
side effect of doing this? 

 

<span style="my_style" font="some_font" color="some_color">text</span>

 

Also, what about multiple tags like "span" with the same attribute?
I.e., this:

 

<span attr="my_attr"><span attr="my_attr">text</span></span>

 

Becomes this:

 

<span attr="my_attr">text</span>

 

?

Received on Monday, 23 February 2009 11:05:33 UTC