Please use `'<a href="' . $redirect . '">'` here instead of escaped double quotes