Skip to content

It shouldn't change original string if its a valid html and less than truncation limit #5

@east2dd

Description

@east2dd

Example Test Input:
full_html = "<p>short</p>\r\n\<p>description</p>"
truncated_html = truncate_html(input, length: 345, omission: "...")

Result:
full_html==truncated_html
=> false

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