sql_browser: fix recent regressions
introduced in 41646898 (sql_browser: add a checkbox to run "ANALYZE FORMAT=json" on the current query, 2025-03-16) and a missing html escape problem that were also here before
introduced in 41646898 (sql_browser: add a checkbox to run "ANALYZE FORMAT=json" on the current query, 2025-03-16) and a missing html escape problem that were also here before