Skip to content

Commit b670a33

Browse files
TuntiiCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d73d62c commit b670a33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/cookbook/src/crates/rustapi_extras.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ The `sanitization` feature helps prevent XSS by cleaning user input.
212212
use rustapi_extras::sanitization::sanitize_html;
213213

214214
let safe_html = sanitize_html("<script>alert(1)</script>Hello");
215-
// Result: "Hello"
215+
// Result: "&lt;script&gt;alert(1)&lt;/script&gt;Hello"
216216
```
217217

218218
## Resilience

0 commit comments

Comments
 (0)