Skip to content

Bars Specification 0.1.0 — Transform: strip_html

Category: string · Since: 0.1.0

Removes HTML markup.

Removes <script>/<style> bodies (case-insensitive), HTML comments, and all remaining tags from the string-coerced input. HTML entities are not decoded.

Input coercion: string

Arguments

None.

Arity: 0–0

Worked examples

{{ html | strip_html }}

hello world
{{ html | strip_html }}

beforemiddleafter

Full fixture: transforms/transform-strip_html.json