Replace p tag with div javascript

Below is a code snippet

var pTags=document.getElementsByTagName['p'];
for[i=0;i

Chủ Đề