diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-06-13 14:50:48 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-06-13 14:56:28 +0200 |
commit | 4277dac07db06f24ba30a75b4c1dec542e32dae8 (patch) | |
tree | bcad7ace156eecf64fd8d0fb03a4b091bac2f845 /examples | |
parent | efdf90959f78d1582da312bffbefaabb79f264b7 (diff) | |
download | markdown-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 'examples')
-rw-r--r-- | examples/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/lib.rs b/examples/lib.rs index 4d01161..00f45dc 100644 --- a/examples/lib.rs +++ b/examples/lib.rs @@ -15,7 +15,8 @@ fn main() { micromark_with_options( "<div style=\"color: tomato\">\n\n# Hello, tomato!\n\n</div>", &CompileOptions { - allow_dangerous_html: true + allow_dangerous_html: true, + allow_dangerous_protocol: true } ) ); |