JS regularly matches the p tag but does not match the pre tag. All have a p.

replace(/<(?!p|\/p).*?>/g, "")
Mar.03,2022

  

/\ <\ / p (?! re) ([^ >] +)?\ > / or \ < / p (?! re). * >

Menu