I am making an HTML editor which is able to load html files. In order to load it correctly I need to detect what's between certain tags, such as the title and stuff. What I need is a function that will make everything lowercase which is between several less-than and grater-than symbols, yet ignores whatever is between quotations ("). I.e.

<this is all lowercase "BuT ThIs iS IgNoReD" this is still lowercase> ThIs iS IgNoReD, ToO <yet again this is lowercase>

Can anyone help?