From 17c0dd8fb2941c3aead7f2e2e81e4d8033aca135 Mon Sep 17 00:00:00 2001 From: Boshen Date: Tue, 26 Nov 2024 15:37:26 +0800 Subject: [PATCH] fix(linter): fix `jsx_no_script_url` doc failed to build "Element is missing end tag." --- crates/oxc_linter/src/rules/react/jsx_no_script_url.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/oxc_linter/src/rules/react/jsx_no_script_url.rs b/crates/oxc_linter/src/rules/react/jsx_no_script_url.rs index 40ebfa68a..b999431b8 100644 --- a/crates/oxc_linter/src/rules/react/jsx_no_script_url.rs +++ b/crates/oxc_linter/src/rules/react/jsx_no_script_url.rs @@ -46,9 +46,9 @@ declare_oxc_lint!( /// /// ### Why is this bad? /// - /// URLs starting with javascript: are a dangerous attack surface because it’s easy to accidentally include unsanitized output in a tag like and create a security hole. - /// In React 16.9 any URLs starting with javascript: scheme log a warning. - /// In a future major release, React will throw an error if it encounters a javascript: URL. + /// URLs starting with `javascript:` are a dangerous attack surface because it’s easy to accidentally include unsanitized output in a tag like `` and create a security hole. + /// In React 16.9 any URLs starting with `javascript:` scheme log a warning. + /// In a future major release, React will throw an error if it encounters a `javascript:` URL. /// /// ### Examples ///