mirror of
https://github.com/go-shiori/shiori.git
synced 2025-02-22 15:06:04 +08:00
Remove javascript bevore archival
This commit is contained in:
parent
fde91e5edd
commit
01d0df5d58
1 changed files with 3 additions and 0 deletions
|
@ -44,6 +44,9 @@ func (arc *Archiver) ProcessHTMLFile(res ResourceURL, input io.Reader) (result P
|
|||
return ProcessResult{}, nil, fmt.Errorf("url %s is not valid", res.DownloadURL)
|
||||
}
|
||||
|
||||
// TODO: I'm still not really sure, but IMHO it's safer to disable Javascript
|
||||
removeNodes(getElementsByTagName(doc, "script"), nil)
|
||||
|
||||
// Convert lazy loaded image to normal
|
||||
fixLazyImages(doc)
|
||||
|
||||
|
|
Loading…
Reference in a new issue