froot Posted March 8, 2022 Posted March 8, 2022 is there a $sanitizer method that can remove quotes? I need to remove them for SEO.
AndZyk Posted March 8, 2022 Posted March 8, 2022 Hello @fruid, the $sanitizer->text() method has a stripQuotes option: stripQuotes (bool): strip out any "quote" or 'quote' characters? Specify true, or character to replace with. (default=false) I think this should work: $sanitizer->text($yourText, ["stripQuotes" => true]); Regards, Andreas 1
froot Posted March 9, 2022 Author Posted March 9, 2022 only removes the first opening double quotes, the second closing double quotes stay ?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now