Commit 0cfee34
fix: strip HTML tags from config.name when setting page title (#2690)
The `name` config option can contain HTML markup (e.g. `<img>` tags) for
rendering a logo in the sidebar. However, this raw HTML was being used
directly in `document.title`, causing browser tabs to show markup like
`<img src="logo.png">My Site - Page Title`.
Strip HTML tags from `name` before using it in the page title so that
only the plain text content appears in the browser tab.
Fixes #2610
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent f4c37e0 commit 0cfee34
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
| 332 | + | |
| 333 | + | |
333 | 334 | | |
334 | | - | |
335 | | - | |
| 335 | + | |
| 336 | + | |
336 | 337 | | |
337 | 338 | | |
338 | 339 | | |
| |||
0 commit comments