Skip to content

Comments

HTML API: List all tokens in an input document.#6046

Closed
dmsnell wants to merge 1 commit intoWordPress:trunkfrom
dmsnell:html-api/list-tokens
Closed

HTML API: List all tokens in an input document.#6046
dmsnell wants to merge 1 commit intoWordPress:trunkfrom
dmsnell:html-api/list-tokens

Conversation

@dmsnell
Copy link
Member

@dmsnell dmsnell commented Feb 7, 2024

Apply this patch to print a diagnostic view of an HTML document, as the HTML API sees it.

  • without any arguments this prints a predefined sample HTML document.
  • pipe to stdin and supply any CLI arg to list the tokens for a given input.
php parse-tokens.php

curl http://info.cern.ch/hypertext/DataSources/Top.html | php parse-tokens.php -

Screenshot 2024-02-06 at 6 52 49 PM

@dmsnell
Copy link
Member Author

dmsnell commented Jun 15, 2024

Replaced by #6832

@dmsnell dmsnell closed this Jun 15, 2024
@dmsnell dmsnell deleted the html-api/list-tokens branch June 15, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant