CONTENT SAFETY
A small, useful rich-markup policy.
CanvasCard keeps enough expressive markup for visual stories while removing unsupported browser behaviors.
Text and structure
Paragraphs, headings, emphasis, lists, quotes, code, and line breaks are supported.
<p> <h2> <strong> <ul> <li> <blockquote>
Links
Standard HTTP(S) and relative or fragment links are retained. Unsupported URI schemes are removed.
href="https://..." · href="#section"
SVG visuals
SVG groups, paths, rectangles, circles, text, and approved SVG presentation attributes remain available.
<svg> <g> <rect> <circle> <text>
Lightweight motion
Animation attributes are retained for supported SVG properties. Link targets continue through the sanitizer's URL-scheme policy.
<animate attributeName="href" values="#a;#b">
Always removed
Script elements, event-handler attributes, embedded documents, forms, raw styles, and arbitrary attributes are not part of the policy.