'); const appScriptMatch = raw.match(/]*>([\s\S]*?)<\/script>/i); const appCode = appScriptMatch ? appScriptMatch[1] : ''; if (appScriptMatch) raw = raw.replace(appScriptMatch[0], ''); const parser = new DOMParser(); const doc = parser.parseFromString(raw, 'text/html'); // 1. Salin class dan style dari aplikasi ke Blogger if (doc.body) { if (doc.body.className) document.body.className = doc.body.className; if (doc.body.getAttribute('style')) document.body.setAttribute('style', doc.body.getAttribute('style')); } // 2. Masukkan semua