diff --git a/framework/core/js/src/common/Application.tsx b/framework/core/js/src/common/Application.tsx index 4a58c8de6..29c6ea80d 100644 --- a/framework/core/js/src/common/Application.tsx +++ b/framework/core/js/src/common/Application.tsx @@ -414,7 +414,12 @@ export default class Application { onHomepage || !this.title ? extractText(app.translator.trans('core.lib.meta_titles.without_page_title', params)) : extractText(app.translator.trans('core.lib.meta_titles.with_page_title', params)); - document.title = count + title; + + const tempEl = document.createElement('div'); + tempEl.innerHTML = title; + const decodedTitle = tempEl.innerText; + + document.title = count + decodedTitle; } protected transformRequestOptions(flarumOptions: FlarumRequestOptions): InternalFlarumRequestOptions { diff --git a/framework/core/views/frontend/app.blade.php b/framework/core/views/frontend/app.blade.php index 2027af5c2..249aa3f99 100644 --- a/framework/core/views/frontend/app.blade.php +++ b/framework/core/views/frontend/app.blade.php @@ -3,7 +3,7 @@ @if ($language) lang="{{ $language }}" @endif> - {{ $title }} + {!! $title !!} {!! $head !!}