miniflux/internal/reader/sanitizer
jvoisin 3d0126be0b Speed the sanitizer up a bit, again
- allow youtube urls to start with `www`
- use `strings.Builder` instead of a `bytes.Buffer`
- use a `strings.NewReader` instead of a `bytes.NewBufferString`
- sprinkles a couple of `continue` to make the code-flow more obvious
- inline calls to `inList`, and put their parameters in the right order
- simplify isPixelTracker
- simplify `isValidIframeSource`, by extracting the hostname and comparing it
  directly, instead of using the full url and checking if it starts with
  multiple variations of the same one (`//`, `http:`, `https://` multiplied by
  ``/`www.`)
- add a benchmark
2024-03-05 19:31:50 -08:00
..
testdata Speed the sanitizer up a bit, again 2024-03-05 19:31:50 -08:00
sanitizer.go Speed the sanitizer up a bit, again 2024-03-05 19:31:50 -08:00
sanitizer_test.go Speed the sanitizer up a bit, again 2024-03-05 19:31:50 -08:00
srcset.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
srcset_test.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
strip_tags.go Add a warning for StripTags 2024-02-27 20:41:47 -08:00
strip_tags_test.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
truncate.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
truncate_test.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00