diff --git a/blocks/contactus/contactus.js b/blocks/contactus/contactus.js index f788b7df..5d2d708b 100644 --- a/blocks/contactus/contactus.js +++ b/blocks/contactus/contactus.js @@ -14,9 +14,9 @@ export default function decorate() { } else if (i === 1) { innerElements += pTags[i].outerHTML; } else if (i === 3) { - phone = pTags[2].outerHTML.replace(/

/g, ''); + phone = pTags[2].outerHTML.replace(/

/g, ``); phone.replace(/<\/p>/g, ''); - pTags[i].innerHTML = '

' + phone + pTags[i].innerHTML + '
'; + pTags[i].innerHTML = `
' ${phone + pTags[i].innerHTML} '
`; const button = pTags[i].outerHTML.replace(/

/g, ''); innerElements += button.replace(/<\/p>/g, ''); }