bakame-php / bakame-php/html-table

optionally return HTML for td content

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
11
Forks
2
PR merge metrics
No merged PRs in 30d

Description

## Feature Request

| Q | A |
|-------------|--------|
| New Feature | yes |
| BC Break | no |

### Proposal

I would like the HTML in a td to be returned. This could be done by passing an option to parseFile:

```php
$sites = Parser::new()
->ignoreTableHeader()
->tableHeader(['dir', 'port', 'domains'])
->parseFile('http://127.0.0.1:7080');
```

The content is

![Image](https://github.com/user-attachments/assets/65c6d6fc-a42c-4486-ad68-d50c96f9fb9f)

But what's being returned is a single string:

^ "https://*.pgsc.wip/https://pgsc.wip/"

If I had the HTML I could parse it to get the 2 elements I need.

Thanks for your consideration.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.