项目作者: exts

项目描述 :
Golang Html Broken Tag Checker (checks if an open tag is missing its closing tag at the first occurence)
高级语言: Go
项目地址: git://github.com/exts/BTagChecker.git
创建时间: 2019-02-28T23:02:03Z
项目社区:https://github.com/exts/BTagChecker

开源协议:The Unlicense

下载


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

  1. import "github.com/exts/BTagChecker"
  2. func main() {
  3. if BTagChecker.HasValidClosingTags("<b>aye") {
  4. println("up")
  5. } else {
  6. println("oh no someone broke the html in your code")
  7. }
  8. }