mirror of
https://github.com/projectdiscovery/httpx
synced 2026-06-08 16:50:17 +00:00
76adadfeb4
* Add flag to preview first N characters * use dynamic var for body-preview flag * strip html tags from response * add stripe option to remove html or xml tags * typo * resolve merge conflicts * add test and update readme * update readme * typo * typo no 2 * small refactor * include body preview in jsonl output * minor changes --------- Co-authored-by: mzack <marco.rivoli.nvh@gmail.com> Co-authored-by: Mzack9999 <mzack9999@protonmail.com>
12 lines
197 B
Go
12 lines
197 B
Go
package httputilz
|
|
|
|
import "regexp"
|
|
|
|
var (
|
|
normalizeSpacesRegex = regexp.MustCompile(`\s+`)
|
|
)
|
|
|
|
func NormalizeSpaces(data string) string {
|
|
return normalizeSpacesRegex.ReplaceAllString(data, " ")
|
|
}
|