def test_htmllib_integration(register_builtin_html): assert escaping.escape_attribute("") == "" assert escaping.escape_text("") == ""
def make_confirmed_form_submit_link(*, form_name: str, button_name: str, message: str) -> PageMenuLink: return make_javascript_link( "cmk.page_menu.confirmed_form_submit(%s, %s, %s)" % (json.dumps(form_name), json.dumps(button_name), json.dumps(escaping.escape_text(message))))
def render(self, row, cell): return (None, "%s: %s" % \ (escape_text(row["crash_exc_type"]), escape_text(row["crash_exc_value"])))
def render(self, row, cell): return (None, escape_text(row["crash_version"]))
def render(self, row, cell): return (None, escape_text(row["crash_type"]))
def make_confirm_link(*, url: str, message: str) -> str: return "javascript:cmk.forms.confirm_link(%s, %s),cmk.popup_menu.close_popup()" % ( json.dumps(url), json.dumps(escape_text(message)), )