github.com/microcosm-cc/bluemonday.attrPolicyBuilder.OnElements (method)

51 uses

	github.com/microcosm-cc/bluemonday (current package)
		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#L188: 	p.AllowAttrs("src").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#L262: 	).OnElements("col", "colgroup")
		helpers.go#L263: 	p.AllowAttrs("span").Matching(Integer).OnElements("colgroup", "col")
		helpers.go#L266: 	).OnElements("col", "colgroup")
		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#L278: 	).OnElements("td", "th")
		helpers.go#L281: 	).OnElements("td", "th")
		helpers.go#L286: 	).OnElements("td", "th")
		helpers.go#L287: 	p.AllowAttrs("valign").Matching(CellVerticalAlign).OnElements("td", "th")
		helpers.go#L290: 	).OnElements("td", "th")
		helpers.go#L293: 	p.AllowAttrs("align").Matching(CellAlign).OnElements("tbody", "tfoot")
		helpers.go#L296: 	).OnElements("tbody", "tfoot")
		policies.go#L95: 	).Matching(regexp.MustCompile(`(?i)^(|open)$`)).OnElements("details")
		policies.go#L133: 	p.AllowAttrs("cite").OnElements("blockquote")
		policies.go#L143: 	p.AllowAttrs("href").OnElements("a")
		policies.go#L148: 	).OnElements("map")
		policies.go#L149: 	p.AllowAttrs("alt").Matching(Paragraph).OnElements("area")
		policies.go#L152: 	).OnElements("area")
		policies.go#L153: 	p.AllowAttrs("href").OnElements("area")
		policies.go#L154: 	p.AllowAttrs("rel").Matching(SpaceSeparatedTokens).OnElements("area")
		policies.go#L157: 	).OnElements("area")
		policies.go#L160: 	).OnElements("img")
		policies.go#L173: 	p.AllowAttrs("cite").OnElements("q")
		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#L217: func (abp *attrPolicyBuilder) OnElements(elements ...string) *Policy {

	golang.org/x/pkgsite/internal/frontend
		overview.go#L103: 	p.AllowAttrs("width", "align").OnElements("img")
		overview.go#L104: 	p.AllowAttrs("width", "align").OnElements("div")
		overview.go#L105: 	p.AllowAttrs("width", "align").OnElements("p")
		readme.go#L148: 	p.AllowAttrs("width", "align").OnElements("img")
		readme.go#L149: 	p.AllowAttrs("width", "align").OnElements("div")
		readme.go#L150: 	p.AllowAttrs("width", "align").OnElements("p")
		readme.go#L152: 	p.AllowAttrs("width", "align", "role", "aria-level").OnElements("div")
		readme.go#L155: 		p.AllowAttrs("class").OnElements(h)