jasper Posted July 14, 2013 Share Posted July 14, 2013 When I run this php script in Alfred, it adds backslashes before spaces (and some other characters): $query = "{query}"; echo $query; For example if the query was: "Alfred is an amazing app!" The output is: "Alfred\ is\ an\ amazing\ app!" I'm not too familiar with this kind of thing, so why does Alfred do this? In what cases besides before a space does it add a backslash? Is there a way to prevent it? Link to comment
vitor Posted July 14, 2013 Share Posted July 14, 2013 Common mistake. On the window where you’re writing your script, look for “Escaping”, right above the text area. Deselect there what you don’t want to be preceded by the backslash. Link to comment
jasper Posted July 14, 2013 Author Share Posted July 14, 2013 Ah, I see. That was simple. Thanks for your help! Link to comment
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