pub fn render_debug_html(error: &DebugError, config: &DebugPageConfig) -> StringExpand description
渲染 Whoops-style HTML 调试页
§安全约束
- 所有用户输入经
html_escape转义,防 XSS - HTML 内联 CSS(无外部依赖)
- 源码片段限制最多
context * 2 + 1行,避免读取大文件
pub fn render_debug_html(error: &DebugError, config: &DebugPageConfig) -> String渲染 Whoops-style HTML 调试页
html_escape 转义,防 XSScontext * 2 + 1 行,避免读取大文件