#Serving HTML with weird characters, RAW

6 messages · Page 1 of 1 (latest)

feral dune
#

I'm getting HTML from PayloadCMS, it looks like this:

<div class="payload-richtext"><p>Monteer die tot één geheel en stuur je filmpje vóór woensdag...</p><p><br /></p></div>

After passing through set:html or being rendered through an element normally in any way, it appears like this:
Monteer die tot één geheel en stuur je filmpje vóór woensdag...
With the rendered HTML being

<div class="payload-richtext"><p>Monteer die tot één geheel en stuur je filmpje vóór woensdag...</p><p><br></p></div>

I'd like my HTML actually raw, please houston_chef

short socket
#

Do you have the <meta charset="UTF-8" /> header in your Layout?

feral dune
#

That's probably it, will see in some hours

#

Does the browser not default to UTF-8 if it's not present??

#

Thanks for the catch though, luckily didn't spend too much time on it