Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/sanitize.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

222 changes: 222 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,21 @@ sanitize.Path(s string) string

Path makes a string safe to use as an url path.

```go
sanitize.All(s string) string
```

All apply all the sanitize functions

Changes
-------

Version 1.3

Added All that apply all the default sanitize functions



Version 1.2

Adjusted HTML function to avoid linter warning
Expand Down
6 changes: 6 additions & 0 deletions sanitize.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,3 +386,9 @@ func includes(a []string, s string) bool {
}
return false
}

// Apply Every function in the package
func All(s string)string{
step1:=Name(Path(HTML(s)))
return Accents(BaseName(step1))
}