Skip to content
This repository was archived by the owner on Sep 7, 2024. It is now read-only.
This repository was archived by the owner on Sep 7, 2024. It is now read-only.

Doesn't work with <img /> tags, somehow #5

Description

@rlipscombe
var t = require('html-truncate');
t('<ul><li><img src="image-1" /><img src="image-2" /></li></ul>', 40);

...returns

<ul><li><img src="image-2" /><img src="image-2" />

...rather than anything sensible.

Moreover, increasing the requested length doesn't fix it (passing 1000 instead of 40) gives the same result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions