Using Hugo v.0.160.0 I found that the querify function will escape HTML when building but not when in development(server).
The official documentation shows an example output of the function with escaped HTML. This could provoke confusion when users preview the output while on server and see the unescaped HTML. They could assume that either the function is not escaping the HTML at all, or that the example missed a step using the htmlEscape function. The documentation is technically correct, and a little note on this would prevent people from opening pull requests on the documentation repo.
The screenshot shows Librewolf(Firefox fork), with dev tools open showing the unescaped ampersand of one link and the escaped one from the second link. At the right one can see the template used to generate such page.
