Skip to content

Commit

Permalink
Update the documented triple Mustache tag allowlist (#37083)
Browse files Browse the repository at this point in the history
It's currently out of sync with the code. It also incorrectly states
that amp-list is allowed (it's not). That's probably a typo from #31300.

https://github.com/ampproject/amphtml/blob/c91e704e4d09d8fbac1068653e0dd71a078d8912/src/purifier/sanitation.js#L104-L159
  • Loading branch information
zhangsu authored Dec 1, 2021
1 parent 6d1060a commit fa431d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/amp-mustache/amp-mustache.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ that among other things, you can't use `amp-mustache` to:
- Calculate tag name. E.g. `<{{tagName}}>` is not allowed.
- Calculate attribute name. E.g. `<div {{attrName}}=something>` is not allowed.

The output of "triple-mustache" is sanitized to only allow the following tags: `a`, `amp-list`, `b`, `br`, `caption`, `col`, `colgroup`, `code`, `del`, `div`, `em`, `h1`, `h2`, `h3`, `hr`, `i`, `ins`, `li`, `mark`, `ol`, `p`, `q`, `s`, `small`, `span`, `strong`, `sub`, `sup`, `table`, `tbody`, `time`, `td`, `th`, `thead`, `tfoot`, `tr`, `u`, `ul`.
The output of "triple-mustache" is sanitized to only allow the following tags: `a`, `amp-img`, `article`, `aside`, `b`, `blockquote`, `br`, `caption`, `code`, `col`, `colgroup`, `dd`, `del`, `details`, `div`, `dl`, `dt`, `em`, `figcaption`, `figure`, `footer`, `h1`, `h2`, `h3`, `header`, `hr`, `i`, `ins`, `li`, `main`, `mark`, `nav`, `ol`, `p`, `pre`, `q`, `s`, `section`, `small`, `span`, `strong`, `sub`, `summary`, `sup`, `table`, `tbody`, `td`, `tfoot`, `th`, `thead`, `time`, `tr`, `u`, `ul`.

### Sanitization

Expand Down

0 comments on commit fa431d8

Please sign in to comment.