Does Slim3 do something filter XSS attacks by default?

I tried the simple code ,as follows:

$app = new \Slim\App;
$app->get('/hello/{name}', function (Request $request, Response $response) {
    $name = $request->getAttribute('name');
    $response->getBody()->write("Hello, $name");

    return $response;

and when I request<script>, the value of $name is empty string. So I want to know where does the logic code exist to filter illegal input parameters .I just want to make sure that Slim has filtered illegal input parameters, and curious about the source code .I’ve
casually browsing the source code, but can’t find relevant information.Who can tell me which class or package does the code exist ?

Slim uses FastRoute for routes. Take a look on their code :smiley:
I’m not sure about this check.