Skip to content

Commit 65bad83

Browse files
committed
docs: use an MkDocs admonition for media helper escaping
GitHub-only alert `> [!NOTE]` does not render in MkDocs; use the admonition syntax from contributing/documentation.md, and document that `$unsupportedMessage`, `$attributes`, `$tracks` and `$params` are inserted as raw HTML.
1 parent 3db4058 commit 65bad83

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎docs/helpers/html_helper.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ The above code will produce this:
400400
</video>
401401
```
402402

403-
> [!NOTE]
404-
> Attribute values generated by media helper functions (`src`, `type`, `kind`, `srclang`, `label`, `name`, `value`, `data`) are automatically escaped. The `$unsupportedMessage` parameter in `video()` and `audio()` accepts raw HTML (such as fallback links).
403+
!!! note "Note"
404+
Attribute values generated by media helper functions (`src`, `type`, `kind`, `srclang`, `label`, `name`, `value`, `data`) are automatically escaped. The `$unsupportedMessage`, `$attributes`, `$tracks` and `$params` parameters are inserted as raw HTML: they accept trusted markup, such as fallback links or attribute snippets, and must not contain unescaped user input.
405405

406406
#### audio($src[, $unsupportedMessage = ''[, $attributes = ''[, $tracks = [][, $indexPage = false]]]])
407407

0 commit comments

Comments
 (0)