[ticket/13280] Properly format the current page and add sanitizer to tests

Ticket: https://tracker.phpbb.com/browse/PHPBB3-13280
Yup, added that now.