BTagChecker
Fork of: https://github.com/exts/BTagChecker
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
This is modified to ignore the following tags: basefont
, br
, area
, link
, img
, param
, hr
, input
, col
, frame
, isindex
, base
, meta
. Defined here: xml.HTMLAutoClose
.
Example
import "<repo>/pkg/BTagChecker"
func main() {
if BTagChecker.HasValidClosingTags("<b>aye") {
println("up")
} else {
println("oh no someone broke the html in your code")
}
}