MommaWatasu / OteraEngine.jl

This package is a template engine for Julia Lang.
https://mommawatasu.github.io/OteraEngine.jl/stable
MIT License
20 stars 4 forks source link

{{ }} escapes html by default #11

Closed edyu closed 1 year ago

edyu commented 1 year ago

It's not a good idea to escape by default for example: image = "http://example.com/image/test.jpg" <img src="{{image}}"> will escape the path so the image will not be rendered.

I know it's probably too much work to implement {{ image | e }} for escaping but maybe it's ok when it's escaped for {{ }} because I can use ``` image ```

edyu commented 1 year ago

It looks like even

``` http://blahblah_hello ```
is now doing html escaping and it also changed everything to lower case. It doesn't happen every time but sometimes it does. It got changed to
http: blahblah hello

MommaWatasu commented 1 year ago

Sorry for waiting you. I mainly work on weekends, and it may take a few more days to fix the bugs(including other issue).