瀏覽代碼

[GinS] Search results should be sanitized

cgars 7 年之前
父節點
當前提交
d38f3da893
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      templates/explore/blob_list.tmpl

+ 1 - 1
templates/explore/blob_list.tmpl

@@ -24,7 +24,7 @@
 		<div class="ui divided list">
 			{{range .Highlight.Content}}
 			<div class="item">
-				{{. | Safe}}
+				{{. | Str2html}}
 			</div>
 			{{end}}
 			{{end}}