aboutsummaryrefslogtreecommitdiffstats
path: root/tests/html_flow.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-13 14:50:48 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-13 14:56:28 +0200
commit4277dac07db06f24ba30a75b4c1dec542e32dae8 (patch)
treebcad7ace156eecf64fd8d0fb03a4b091bac2f845 /tests/html_flow.rs
parentefdf90959f78d1582da312bffbefaabb79f264b7 (diff)
downloadmarkdown-rs-4277dac07db06f24ba30a75b4c1dec542e32dae8.tar.gz
markdown-rs-4277dac07db06f24ba30a75b4c1dec542e32dae8.tar.bz2
markdown-rs-4277dac07db06f24ba30a75b4c1dec542e32dae8.zip
Add support for sanitizing urls
* Add support for properly encoding characters in urls * Add support for sanitizing potentially dangerous urls * Add safe defaults, optionally live dangerously
Diffstat (limited to 'tests/html_flow.rs')
-rw-r--r--tests/html_flow.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/html_flow.rs b/tests/html_flow.rs
index 7969487..6445af3 100644
--- a/tests/html_flow.rs
+++ b/tests/html_flow.rs
@@ -3,6 +3,7 @@ use micromark::{micromark, micromark_with_options, CompileOptions};
const DANGER: &CompileOptions = &CompileOptions {
allow_dangerous_html: true,
+ allow_dangerous_protocol: false,
};
#[test]