Convert HTML tag to lowercase

Posted by mofle on Stack Overflow See other posts from Stack Overflow or by mofle
Published on 2010-05-20T11:46:59Z Indexed on 2010/05/20 11:50 UTC
Read the original article Hit count: 261

Filed under:
|
|
|
|

I working on an intranet project for IE6 (i know...) and I need to output some HTML code from a div.

I use $('#output').text($('#container').html());

But IE6 outputs all the code in uppercase:

<TABLE>
 <TR>
  <TD>test</TD>
 </TR>
</TABLE>

How can I convert HTML tags to lowercase using jQuery?

Would be useful to have a plugin that could recursively go trough the DOM-tree.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about html