Skip to content

chop filter - opening HTML tag length is counted along with text length #24

@piotrpog

Description

@piotrpog

I noticed that when I use allowedTags option, with chop filter (while chopping by a number of characters), opening tag length in the text is counted along with text length. But when this specific allowed tag is automatically closed, this closing tag length is not counted.

I think it would be best if these tags length would be no counted at all, after all, we truncate text to specific length showed to the user, it does not matter how long HTML is.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions