Antevenio/safe-url-validator

View on GitHub
src/Parser/StripAnchors.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Antevenio\SafeUrl\Parser;

use Antevenio\SafeUrl\Parser;

class StripAnchors implements Parser
{
    public function parse($url)
    {
        return explode('#', $url)[0];
    }
}