prismicio/prismic-richtext

HTML Entities are not encoded

nickw444 opened this issue · 1 comments

Text which contains ampersands (and other unsafe entities) are not encoded.

For example calling PrismicDom.RichText.asHtml on data that contains text that contains ampersands &, returns invalid HTML markup

<span>foo bar & baz </span>

When it would be expected to get

<span>foo bar &amp; baz </span>

@benjaminjt

Raised in wrong repo