a-ok Posted February 12, 2019 Share 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? Link to comment Share on other sites More sharing options...
a-ok Posted February 12, 2019 Author Share Posted February 12, 2019 `$sanitizer->pageName()` seems to work fine Link to comment Share on other sites More sharing options...
bernhard Posted February 12, 2019 Share Posted February 12, 2019 https://processwire.com/api/ref/sanitizer/test-all/ can be helpful in such cases 2 Link to comment Share on other sites More sharing options...
a-ok Posted February 12, 2019 Author Share 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. Link to comment Share on other sites More sharing options...
Soma Posted February 12, 2019 Share Posted February 12, 2019 Read here what name() does https://processwire.com/api/ref/sanitizer/name/ Link to comment Share on other sites More sharing options...
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