[javascript regex] nach = wort in ” ” wenn in <* > uiuiuiu
eingabe: <ASD asd=SDf SDA=F sad=F dsaf =SDAf =s daf=SDA f=SA Df=><P style=”border:2px solid lightblue;padding:10;text-align:center;color:royalblue;background:aliceblue width = = 123″><B>Welco
ausgabe: <ASD asd=”SDf” SDA=”F” sad=”F” dsaf=SDAf=”s” daf=”SDA” f=”SA” Df=><P style=”border:2px solid lightblue;padding:10;text-align:center;color:royalblue;background:aliceblue” width==”123″><B>Welco
<TEXTAREA id=n rows=10 cols=100></TEXTAREA>
<SCRIPT>
//a='<A href= asdsad name1 = aus1 name2 = \’aus2\’ asdsad = “32wq”>lkh</A>\n<asd=wqer<>><ASD asd=SDf SDA=F sad=F dsaf =SDAf =s daf=SDA f=SA Df=><P style=”border:2px solid lightblue;padding:10;text-align:center;color:royalblue;background:aliceblue”><B>Welco’
a='<ASD asd=SDf SDA=F sad=F dsaf =SDAf =s daf=SDA f=SA Df=><P style=”border:2px solid lightblue;padding:10;text-align:center;color:royalblue;background:aliceblue width = = 123″><B>Welco’
document.getElementById(‘n’).value=a+”\n\n”
document.getElementById(‘n’).value+=a.replace(/ ?= */g, “=”).replace(/[“‘]/g,””).replace(/(=)([^=><]+)([> ])/gi, “$1\”$2\”$3”)
</SCRIPT>