File tree Expand file tree Collapse file tree
en/docs/hertz/tutorials/third-party/middleware
zh/docs/hertz/tutorials/third-party/middleware Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ date: 2025-12-04
44weight : 8
55keywords : ["Swagger", "RESTful API"]
66description : " Generate RESTful API documentation with the official Swagger toolchain and HTTP adaptor."
7+ disableSafeHTML : true
78---
89
910> ** ⚠️ Deprecated**
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ date: 2025-12-04
44weight : 8
55keywords : ["Swagger", "RESTful API"]
66description : " 使用官方 Swagger 工具链和 HTTP Adaptor 生成 RESTful API 文档"
7+ disableSafeHTML : true
78---
89
910> ** ⚠️ 已废弃**
Original file line number Diff line number Diff line change 2424</ div >
2525
2626{{/* Embed raw markdown for copy-as-markdown */}}
27- < script id ="copy-fulltext-markdown " type ="text/plain "> { { . RawContent | safeHTML } } </ script >
27+ {{/* Allow front matter to disable safeHTML for XSS safety */}}
28+ < script id ="copy-fulltext-markdown " type ="text/plain "> { { if . Params . disableSafeHTML } } { { . RawContent } } { { else } } { { . RawContent | safeHTML } } { { end } } </ script >
You can’t perform that action at this time.
0 commit comments