fix(linter): fix jsx_no_script_url doc failed to build

"Element is missing end tag."
This commit is contained in:
Boshen 2024-11-26 15:37:26 +08:00
parent 861ae1581a
commit 17c0dd8fb2
No known key found for this signature in database
GPG key ID: 9C7A8C8AB22BEBD1

View file

@ -46,9 +46,9 @@ declare_oxc_lint!(
///
/// ### Why is this bad?
///
/// URLs starting with javascript: are a dangerous attack surface because its easy to accidentally include unsanitized output in a tag like <a href> 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 its easy to accidentally include unsanitized output in a tag like `<a href>` 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
///