Skip to content

Avoid escaping href urls

Yukai Chou requested to merge muzimuzhi/arara:href-escaping into master

Currently, the html files generated by zola contain several unnecessary HTML/XML encoding character &#x2F;, found in _urls_ in <a ... href="_urls_">...</a>. This merge request restores these &#x2F; to / by appending Tera filter safe to corresponding template expressions {{ ... }}.

Docs for filter safe:

Not sure if this should be merged on master or develop, as this change is (or should be) transparent to manual readers.

The three cases in _macros.html is, as I guess, inherited from juice hence I've opened similar PR to it. See https://github.com/huhu/juice/pull/11.

Edited by Yukai Chou

Merge request reports