MOBILE-4081 wiki: Fix create page with HTML in title

main
Dani Palou 2022-11-24 12:38:10 +01:00
parent 9076a61493
commit 2ad9d2645c
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ export class AddonModWikiEditPage implements OnInit, OnDestroy, CanLeave {
this.userId = CoreNavigator.getRouteNumberParam('userId'); this.userId = CoreNavigator.getRouteNumberParam('userId');
let pageTitle = CoreNavigator.getRouteParam<string>('pageTitle'); let pageTitle = CoreNavigator.getRouteParam<string>('pageTitle');
pageTitle = pageTitle ? pageTitle.replace(/\+/g, ' ') : ''; pageTitle = pageTitle ? CoreTextUtils.cleanTags(pageTitle.replace(/\+/g, ' '), true) : '';
this.canEditTitle = !pageTitle; this.canEditTitle = !pageTitle;
this.title = pageTitle ? this.title = pageTitle ?