Use this instead:
<script>
/* Morphs any paragraph that is wrapped in '<' and '>' into an embed */
var Webflow = Webflow || [];
Webflow.push(function() {
$('.w-richtext p').each(function() {
if(this.innerHTML.indexOf('<') == 0 && this.innerHTML.match(/>$/) != null) {
this.innerHTML = this.innerText;
}
});
});
</script>
Or even this:
<script>
var Webflow = Webflow || [];
Webflow.push(function() {
$('.w-richtext p').html(function() {
return $(this).html().indexOf('<') == 0 && $(this).html().match(/>$/) != null ? $(this).text() : $(this).html();
});
});
</script>
Hint: You can omit the line var Webflow = Webflow || [];
if you place custom JavaScript code in the Page Footer or Site Footer.