Jump to content


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...