<p>privet</p> <script> alert([...document.getElementsByTagName("p")].map(e=>e.innerHTML.match(/[^<^>]/g).join(""))) </script>