Skip to content

0.5.0

Compare
Choose a tag to compare
@d47081 d47081 released this 05 Apr 04:05
· 43 commits to main since this release

Implemented Body::skipTags filter

Example

$request = new \Yggverse\Gemini\Client\Request(
    'gemini://yggverse.cities.yesterweb.org'
);

$response = new \Yggverse\Gemini\Client\Response(
    $request->getResponse()
);

$body = new \Yggverse\Gemini\Gemtext\Body(
    $response->getBody()
);

var_dump(
    $body->skipTags() // strip all tags
);

var_dump(
    $body->skipTags(
        [ // strip 1- and 2- level headers only
            "##",
            "###"
        ]
    )
);

Full Changelog: 0.4.1...0.5.0