mirror of
https://github.com/YGGverse/yggverse.github.io.git
synced 2025-01-01 16:24:49 +00:00
36 lines
615 B
Plaintext
36 lines
615 B
Plaintext
# gemini-php 0.5.0
|
|
|
|
Implemented Body::skipTags filter
|
|
|
|
## Example
|
|
|
|
``` php
|
|
$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
|
|
"##",
|
|
"###"
|
|
]
|
|
)
|
|
);
|
|
```
|
|
|
|
## Links
|
|
|
|
=> https://github.com/YGGverse/gemini-php/releases/tag/0.5.0 Download gemini-php 0.5.0 |