def _get_safe_page_title(self, page_title): page_title = self._schema.get_single_string_value(page_title) return safe_content(page_title)
def _get_safe_page_title(self, title): return (safe_content(self._schema.get_single_string_value(title)) if title else "")
def format_message_with_title(error_message, question_title): return error_message % {"question_title": safe_content(question_title)}