JavaScript Substitua as tags P por nova linha

str = str.replace(/<p>(.*)<\/p>/g, "$1\n"); 
Friendly Hawk