Skip to content

Package page shows truncated HTML in the description #3181

Description

@hamedniroomand

Describe the bug

On https://npmx.dev/package/vue-tsc the description shows leftover HTML: <img src="https://img.s

npm cuts description at 255 characters. vue-tsc puts badge HTML in that field, so the cut lands in the middle of an <img> tag. We strip complete tags, but not a tag with no closing >.

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontFrontend, Designneeds discussionAn idea that needs more discussion to understand the scope and impact.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions