Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wordsafe truncation breaks if last occurrence of the delimiter is inside a tag #16

Open
tobyzerner opened this issue Feb 3, 2022 · 0 comments · May be fixed by #71
Open

Wordsafe truncation breaks if last occurrence of the delimiter is inside a tag #16

tobyzerner opened this issue Feb 3, 2022 · 0 comments · May be fixed by #71
Assignees
Labels

Comments

@tobyzerner
Copy link
Contributor

For example:

$string = 'Hello world <a href="#" rel="nofollow">link</a>';

echo (new Marcgoertz\Shorten\Shorten())->truncateMarkup($string, 14, '...', true, true);
Hello world <a href="#"...</a>
@mrcgrtz mrcgrtz self-assigned this Feb 3, 2022
@mrcgrtz mrcgrtz added the bug label Feb 3, 2022
@mrcgrtz mrcgrtz linked a pull request Sep 3, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants