Pagecontent) innerHTML=pagecontent) innerHTML. Replace (/& lt; ([\/]? (div) ((:? \ s *) (:? [^ & gt;] (*) :? \ s *)) & gt;/g, '& lt; $1 span $3 & gt; ');
This is a all page div replace regular span, I want to put all the div and textarea, button is replaced with span everybody excuse me, how to change
CodePudding user response:
Sorry, wrong, is to put the div and textarea replace span and the button
CodePudding user response:
The replace (/& lt; (\/? Div ([^ & gt;] *) & gt;/g, "$1 span $2"). The replace (/& lt; (\/? The textarea ([^ & gt;] *) & gt;/g, "$$2" button)
CodePudding user response: