|
@@ -35,7 +35,7 @@ func NewCut() *Cut {
|
|
//sc, _ := regexp.Compile("\\<script[^\\>]*\\>*[^\\>]+\\</script\\>")
|
|
//sc, _ := regexp.Compile("\\<script[^\\>]*\\>*[^\\>]+\\</script\\>")
|
|
//ss, _ := regexp.Compile("\\<style[^\\>]*\\>*[^\\>]+\\</style\\>")
|
|
//ss, _ := regexp.Compile("\\<style[^\\>]*\\>*[^\\>]+\\</style\\>")
|
|
scs := regexp.MustCompile("(?s)<(script|style)[^>]*>.+?</(script|style)>")
|
|
scs := regexp.MustCompile("(?s)<(script|style)[^>]*>.+?</(script|style)>")
|
|
- at := regexp.MustCompile("(?s)<!%-%-.*?%-%->")
|
|
|
|
|
|
+ at := regexp.MustCompile("(?s)<(!%-%-|!--).*?(%-%-|--)>") //注释 css
|
|
hiddentag := regexp.MustCompile(`<\s*input[^<]*type=("|')hidden("|')[^<]*>`)
|
|
hiddentag := regexp.MustCompile(`<\s*input[^<]*type=("|')hidden("|')[^<]*>`)
|
|
input := regexp.MustCompile(`<\s*input[^<]*value=("|')([^>"']*)[^<]*>`)
|
|
input := regexp.MustCompile(`<\s*input[^<]*value=("|')([^>"']*)[^<]*>`)
|
|
cols, _ := regexp.Compile(`colspan="\d+"`)
|
|
cols, _ := regexp.Compile(`colspan="\d+"`)
|