github.com/microcosm-cc/bluemonday.attrPolicyBuilder.Matching (method)
43 uses
github.com/microcosm-cc/bluemonday (current package)
helpers.go#L148: p.AllowAttrs("dir").Matching(Direction).Globally()
helpers.go#L151: ).Matching(regexp.MustCompile(`[a-zA-Z]{2,20}`)).Globally()
helpers.go#L158: p.AllowAttrs("id").Matching(
helpers.go#L163: p.AllowAttrs("title").Matching(Paragraph).Globally()
helpers.go#L173: p.AllowAttrs("class").Matching(SpaceSeparatedTokens).Globally()
helpers.go#L182: p.AllowAttrs("align").Matching(ImageAlign).OnElements("img")
helpers.go#L183: p.AllowAttrs("alt").Matching(Paragraph).OnElements("img")
helpers.go#L184: p.AllowAttrs("height", "width").Matching(NumberOrPercent).OnElements("img")
helpers.go#L237: p.AllowAttrs("type").Matching(ListType).OnElements("ol", "ul")
helpers.go#L240: p.AllowAttrs("type").Matching(ListType).OnElements("li")
helpers.go#L241: p.AllowAttrs("value").Matching(Integer).OnElements("li")
helpers.go#L252: p.AllowAttrs("height", "width").Matching(NumberOrPercent).OnElements("table")
helpers.go#L253: p.AllowAttrs("summary").Matching(Paragraph).OnElements("table")
helpers.go#L259: p.AllowAttrs("align").Matching(CellAlign).OnElements("col", "colgroup")
helpers.go#L260: p.AllowAttrs("height", "width").Matching(
helpers.go#L263: p.AllowAttrs("span").Matching(Integer).OnElements("colgroup", "col")
helpers.go#L264: p.AllowAttrs("valign").Matching(
helpers.go#L269: p.AllowAttrs("align").Matching(CellAlign).OnElements("thead", "tr")
helpers.go#L270: p.AllowAttrs("valign").Matching(CellVerticalAlign).OnElements("thead", "tr")
helpers.go#L273: p.AllowAttrs("abbr").Matching(Paragraph).OnElements("td", "th")
helpers.go#L274: p.AllowAttrs("align").Matching(CellAlign).OnElements("td", "th")
helpers.go#L275: p.AllowAttrs("colspan", "rowspan").Matching(Integer).OnElements("td", "th")
helpers.go#L276: p.AllowAttrs("headers").Matching(
helpers.go#L279: p.AllowAttrs("height", "width").Matching(
helpers.go#L284: ).Matching(
helpers.go#L287: p.AllowAttrs("valign").Matching(CellVerticalAlign).OnElements("td", "th")
helpers.go#L288: p.AllowAttrs("nowrap").Matching(
helpers.go#L293: p.AllowAttrs("align").Matching(CellAlign).OnElements("tbody", "tfoot")
helpers.go#L294: p.AllowAttrs("valign").Matching(
policies.go#L95: ).Matching(regexp.MustCompile(`(?i)^(|open)$`)).OnElements("details")
policies.go#L146: p.AllowAttrs("name").Matching(
policies.go#L149: p.AllowAttrs("alt").Matching(Paragraph).OnElements("area")
policies.go#L150: p.AllowAttrs("coords").Matching(
policies.go#L154: p.AllowAttrs("rel").Matching(SpaceSeparatedTokens).OnElements("area")
policies.go#L155: p.AllowAttrs("shape").Matching(
policies.go#L158: p.AllowAttrs("usemap").Matching(
policies.go#L176: p.AllowAttrs("datetime").Matching(ISO8601).OnElements("time")
policies.go#L194: p.AllowAttrs("dir").Matching(Direction).OnElements("bdi", "bdo")
policies.go#L204: p.AllowAttrs("cite").Matching(Paragraph).OnElements("del", "ins")
policies.go#L205: p.AllowAttrs("datetime").Matching(ISO8601).OnElements("del", "ins")
policies.go#L237: ).Matching(Number).OnElements("meter")
policies.go#L240: p.AllowAttrs("value", "max").Matching(Number).OnElements("progress")
policy.go#L208: func (abp *attrPolicyBuilder) Matching(regex *regexp.Regexp) *attrPolicyBuilder {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |