https://github.com/exts/btagchecker
Golang Html Broken Tag Checker (checks if an open tag is missing its closing tag at the first occurence)
https://github.com/exts/btagchecker
go golang html validation validation-library
Last synced: 9 months ago
JSON representation
Golang Html Broken Tag Checker (checks if an open tag is missing its closing tag at the first occurence)
- Host: GitHub
- URL: https://github.com/exts/btagchecker
- Owner: exts
- License: unlicense
- Created: 2019-02-28T23:02:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-28T23:02:29.000Z (over 7 years ago)
- Last Synced: 2024-12-27T04:26:21.836Z (over 1 year ago)
- Topics: go, golang, html, validation, validation-library
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Usage
BTagChecker allows you to check if the tags used within the provided string has any unclosed tags. Great if someone modified some html and broke the header tag without your knowledge
# Example
```go
import "github.com/exts/BTagChecker"
func main() {
if BTagChecker.HasValidClosingTags("aye") {
println("up")
} else {
println("oh no someone broke the html in your code")
}
}
```