{"id":22547884,"url":"https://github.com/felixgirault/nokogiri","last_synced_at":"2025-04-10T01:13:06.012Z","repository":{"id":26922576,"uuid":"30384745","full_name":"felixgirault/nokogiri","owner":"felixgirault","description":"Cuts through XML like a breeze.","archived":false,"fork":false,"pushed_at":"2024-04-09T13:13:56.000Z","size":27,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T01:12:58.268Z","etag":null,"topics":["cut","html","php","truncate-html","xml"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/felixgirault.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-05T23:43:52.000Z","updated_at":"2022-01-28T10:28:53.000Z","dependencies_parsed_at":"2022-08-31T23:23:00.331Z","dependency_job_id":null,"html_url":"https://github.com/felixgirault/nokogiri","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixgirault%2Fnokogiri","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixgirault%2Fnokogiri/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixgirault%2Fnokogiri/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixgirault%2Fnokogiri/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/felixgirault","download_url":"https://codeload.github.com/felixgirault/nokogiri/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137891,"owners_count":21053775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cut","html","php","truncate-html","xml"],"created_at":"2024-12-07T15:13:28.591Z","updated_at":"2025-04-10T01:13:05.996Z","avatar_url":"https://github.com/felixgirault.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Nokogiri\n========\n\nCuts through XML like a breeze.\n\nExamples\n--------\n\nGiven this XML:\n\n```xml\n\u003cp\u003e\n\t\u003cspan\u003eLorem ipsum dolor \u003cem\u003esit amet\u003c/em\u003e.\u003c/span\u003e\n\u003c/p\u003e\n```\n\nCutting it at the twentieth character...\n\n```php\n$Nokogiri = new Nokogiri\\Nokogiri();\n$Nokogiri-\u003ecut($xml, 20);\n```\n\nWould return:\n\n```xml\n\u003cp\u003e\n\t\u003cspan\u003eLorem ipsum dolor \u003cem\u003esit\u003c/em\u003e\u003c/span\u003e\n\u003c/p\u003e\n```\n\nCutting it at the eleventh character...\n\n```php\n$Nokogiri-\u003ecut($xml, 11);\n```\n\nWould return:\n\n```xml\n\u003cp\u003e\n\t\u003cspan\u003eLorem ipsum\u003c/span\u003e\n\u003c/p\u003e\n```\n\nNote that the blank characters between tags are not taken into account.\n\nContributing\n------\n\n### Installation\n\nClone the project and run `composer install`.\n\n### Running tests\n\nRun tests with `composer run-script test`.\n\nNotes\n-----\n\nThe implementation is probably shitty, as I don't know anything about writing a\ndecent parser...\n\nAlso, the implementation of the parser itself is kind of tied to the class using\nit. It is obviously bad but it works :grin:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelixgirault%2Fnokogiri","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelixgirault%2Fnokogiri","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelixgirault%2Fnokogiri/lists"}