在golang中是否有samppipe?

时间:2014-07-09 10:47:30

标签: html web go machine-learning

是否有使用go语言实现的boilerpipe项目?

我尝试在谷歌搜索但没有找到任何

2 个答案:

答案 0 :(得分:1)

这个想法的开头是mikkolehtisalo/revel/deXSS

deXSS - 用于狂欢的HTML剥离

  

清理HTML输入的选项:

     
      
  • 逃避一切,例如使用html.EscapeString
  •   
  • 解析HTML输入,并使用预定义规则过滤节点
  •   
     

该库为标签和属性执行后者。

它不像samppipe那么完整,但它是一个开始。

func blahblah() {
    out := FilterHTML("<p>Hello <a mushroom=\"big\" href=\"/snake\">badger</a>!</p><p>Got it?</p>", allowed, true)
    // The attribute "mushroom" was not in allowed, so it will be gone!
    revel.INFO.Printf("Result of filtering: %+v", out)
}

答案 1 :(得分:1)

你可能想看看Goose: https://github.com/advancedlogic/GoOse