function removeAttributes(elem, bRemoveChildAttributes, ...exceptionAttributes)
* -------------------------------------------------------------------- REMOVE ALL ATTRIBUTES FROM ANY ELEMENT [elem] - the element to remove the attributes from. This can can be passed as either a single element such as from id or an array ie class or elementsByTagName [bRemoveChildAttributes] - if [elem] has child nodes, this set to true removes attributes from these child nodes also. [...exceptionAttributes] - unlimited list of attributes to not remove. EXAMPLE: removeAttributes( document.querySelectorAll('div'), // all divs true, // remove attributes of children of divs 'id', 'class', 'href' // keep id, class, href ) ----------------------------------------------------------------- */