You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No, it should not. The purpose of this library is to replace special characters with -, not clean up strings. Why are you running htmlspecialchars() before passing the string to slugify?
How about a bit more dirty string with ampersands after
htmlspecialchars()
?$str = '*** ____ "Hello world" Anything ___ *** - something';
The above gives us
quot-hello-world-quot-anything-something
. Shouldn't theslugify
cut everything between&
and;
?The text was updated successfully, but these errors were encountered: