mirror of
https://codeberg.org/gothub/gothub
synced 2024-12-06 19:16:24 +01:00
replace https://github.com with /
This commit is contained in:
+2
-1
@@ -73,7 +73,8 @@ func WikiView(c *fiber.Ctx) error {
|
||||
})
|
||||
sc.OnHTML("div#wiki-body > div.markdown-body", func(e *colly.HTMLElement) {
|
||||
Content, _ := e.DOM.Html()
|
||||
Scrape.PageContent = string(utils.UGCPolicy().SanitizeBytes([]byte(Content)))
|
||||
Scrape.PageContent = strings.Replace(string(utils.UGCPolicy().SanitizeBytes([]byte(Content))), "https://github.com", "", -1)
|
||||
|
||||
})
|
||||
sc.Visit("https://github.com/" + c.Params("user") + "/" + c.Params("repo") + "/wiki/" + c.Params("page"))
|
||||
// Add scrape-based info to wikiArray
|
||||
|
||||
Reference in New Issue
Block a user