From 7875ada79cea1194dc9e15acee36ed0700be70e6 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 15 Jun 2022 19:28:54 +0200 Subject: Add docs on sanitizing urls to autolink --- src/util/sanitize_uri.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util') diff --git a/src/util/sanitize_uri.rs b/src/util/sanitize_uri.rs index 40e0f2c..d66978e 100644 --- a/src/util/sanitize_uri.rs +++ b/src/util/sanitize_uri.rs @@ -5,9 +5,9 @@ use crate::util::encode::encode; /// Make a value safe for injection as a URL. /// /// This encodes unsafe characters with percent-encoding and skips already -/// encoded sequences (see `normalize_uri` below). +/// encoded sequences (see [`normalize_uri`][] below). /// Further unsafe characters are encoded as character references (see -/// `encode`). +/// [`encode`][]). /// /// Then, a vec of (lowercase) allowed protocols can be given, in which case /// the URL is sanitized. -- cgit