Fixed getPageTitle() issue with special characters, switched from htmlentities() to htmlspecialchars()