Skip to content
This repository was archived by the owner on Jun 6, 2023. It is now read-only.
This repository was archived by the owner on Jun 6, 2023. It is now read-only.

Doesn't strip out HTML tags #4

@frankharrison-wj

Description

@frankharrison-wj

I may be misunderstanding how this works, but I can't get Hacksaw to strip out HTML. The docs suggest that it'll remove everything except P tags, but the following:

{{ '<p>A <strong>strong</strong> paragraph with <a href="#">a link</a></p>' | hacksaw(limit='1') }}

leaves the strong and a tags untouched. Am I missing something obvious? I'm on Craft 2.6.2987, Hacksaw 2.0.1.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions