aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-04-19 15:58:56 +0800
committerGitHub <noreply@github.com>2024-04-19 07:58:56 +0000
commiteb24d973b036e4dddf505d8c12e905ecb1a688f9 (patch)
tree89b7513b576c68f82ca42443d768520f684ee48a /routers
parentfe829915475cadd0f6285a30d629772920e8bf32 (diff)
downloadgitea-eb24d973b036e4dddf505d8c12e905ecb1a688f9.tar.gz
gitea-eb24d973b036e4dddf505d8c12e905ecb1a688f9.zip
Fix project description rendering for org (#30587)
Fix #30263 ![image](https://github.com/go-gitea/gitea/assets/2114189/41cabe6c-f94a-4874-a26f-d01bb89bb28c) Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'routers')
-rw-r--r--routers/web/org/projects.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/org/projects.go b/routers/web/org/projects.go
index d439b11cf9..7f78d1c830 100644
--- a/routers/web/org/projects.go
+++ b/routers/web/org/projects.go
@@ -104,7 +104,7 @@ func Projects(ctx *context.Context) {
}
for _, project := range projects {
- project.RenderedContent = templates.SanitizeHTML(project.Description) // FIXME: is it right? why not render?
+ project.RenderedContent = templates.RenderMarkdownToHtml(ctx, project.Description)
}
err = shared_user.LoadHeaderCount(ctx)
@@ -372,7 +372,7 @@ func ViewProject(ctx *context.Context) {
}
}
- project.RenderedContent = templates.SanitizeHTML(project.Description) // FIXME: is it right? why not render?
+ project.RenderedContent = templates.RenderMarkdownToHtml(ctx, project.Description)
ctx.Data["LinkedPRs"] = linkedPrsMap
ctx.Data["PageIsViewProjects"] = true
ctx.Data["CanWriteProjects"] = canWriteProjects(ctx)