joy-framework / joy

A full stack web framework written in janet
https://joy.swlkr.com
MIT License
537 stars 30 forks source link

Error escaping raw strings inside html #96

Open eko234 opened 2 years ago

eko234 commented 2 years ago

Hi, I'm running into an issue, I know it's not the 'right' way to do it, but I need to do it this way, I'm serving some pages with joy, and I'm embeding js and css inside the html generated trough the "dsl" that joy provides, the issue is that it seems to have issues escaping certain characters, for isntance, the single quotes get to the response as &#x27.

Hope you can help me out, thanks for you work!

eko234 commented 2 years ago

To be more specific I'm trying to declare in my style tags a font family, 'Open Sans'

swlkr commented 2 years ago

You could try the raw function, or maybe modify it somehow, raw shouldn't escape anything