MOBILE-4081 wiki: Fix create page with HTML in title
parent
9076a61493
commit
2ad9d2645c
|
@ -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 ?
|
||||||
|
|
Loading…
Reference in New Issue