SIGN IN SIGN UP
docsifyjs / docsify UNCLAIMED

🃏 A magical documentation site generator.

0 0 25 JavaScript

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>
B
Bowl42 committed
0cfee34dbc0d511a272070e4124eb2f3102d988e
Parent: f4c37e0
Committed by GitHub <noreply@github.com> on 3/4/2026, 1:08:53 PM