diff options
author | René Kijewski <kijewski@library.vetmed.fu-berlin.de> | 2022-04-13 11:50:10 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2022-04-13 13:18:27 +0200 |
commit | fc779e22c3bfa0e94df208a88a361b99e28a9129 (patch) | |
tree | 3a09dfd2352be5d217317f03561170e3baaf4f0c /askama_derive/templates/sub/c.html | |
parent | ab39ced64e4a56b741ee32487d3340e008c7e4fb (diff) | |
download | askama-fc779e22c3bfa0e94df208a88a361b99e28a9129.tar.gz askama-fc779e22c3bfa0e94df208a88a361b99e28a9129.tar.bz2 askama-fc779e22c3bfa0e94df208a88a361b99e28a9129.zip |
Remove `unsafe { … }` code from askama_escape
Using only safe code is actually same as fast as the previous "unsafe"
code according to the crate's benchmark.
The code was extracted from [markup]'s escape function in [escape.rs],
written by Utkarsh Kukreti <utkarshkukreti@gmail.com>, licensed as
`MIT OR Apache-2.0`.
[markup]: https://crates.io/crates/markup
[escape.rs]: https://github.com/utkarshkukreti/markup.rs/blob/8ec40428483790b2c296e907e7be4147b157fe8f/markup/src/escape.rs#L1-L21
Diffstat (limited to 'askama_derive/templates/sub/c.html')
0 files changed, 0 insertions, 0 deletions