Update `_deletePage` to mark `.text` as markup-safe, and modernize the code base: the outer promise seems useless, and so does the `cancel_callback` of the dialog.
Update `_deletePage` to mark `.text` as markup-safe, and modernize the code base: the outer promise seems useless, and so does the `cancel_callback` of the dialog.