a-ok Posted February 12, 2019 Posted February 12, 2019 Short one... but is there any reason why `$sanitizer` wouldn't work? On my local I have the following: `$sanitizer->name($link->settings_social_title);` which works fine but on my DigitalOcean server it doesn't seem to do anything?
a-ok Posted February 12, 2019 Author Posted February 12, 2019 `$sanitizer->pageName()` seems to work fine
bernhard Posted February 12, 2019 Posted February 12, 2019 https://processwire.com/api/ref/sanitizer/test-all/ can be helpful in such cases 2
a-ok Posted February 12, 2019 Author Posted February 12, 2019 29 minutes ago, bernhard said: https://processwire.com/api/ref/sanitizer/test-all/ can be helpful in such cases That is useful! Unsure why it was working on my local because after testing all it would appear that using `$sanitizer->name()` doesn't return the value as lowercase.
Soma Posted February 12, 2019 Posted February 12, 2019 Read here what name() does https://processwire.com/api/ref/sanitizer/name/
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