scripts := doc.FindAll("script", "type", "text/javascript")
for _, script := range scripts {
scriptContent = script.Text()
...
script.Text() will cause golang panic when
<script type="text/javascript" src="/static/bundles/base/zh_CN.js/fa1a0abb4687.js" crossorigin="anonymous"></script> in html
maybe need check k is nil at first
my code like this
script.Text()
will cause golang panic when<script type="text/javascript" src="/static/bundles/base/zh_CN.js/fa1a0abb4687.js" crossorigin="anonymous"></script>
in html maybe need check k is nil at first