{"id":18394412,"url":"https://github.com/romac/node-houdini","last_synced_at":"2025-07-20T01:31:44.676Z","repository":{"id":8096692,"uuid":"9511247","full_name":"romac/node-houdini","owner":"romac","description":"Node.js bindings for Houdini, a text escaping library by GitHub (ABANDONED)","archived":false,"fork":false,"pushed_at":"2013-05-19T15:32:19.000Z","size":188,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T03:35:49.669Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/romac.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-18T01:34:23.000Z","updated_at":"2021-04-01T11:50:14.000Z","dependencies_parsed_at":"2022-07-16T07:03:37.143Z","dependency_job_id":null,"html_url":"https://github.com/romac/node-houdini","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/romac/node-houdini","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romac%2Fnode-houdini","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romac%2Fnode-houdini/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romac%2Fnode-houdini/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romac%2Fnode-houdini/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romac","download_url":"https://codeload.github.com/romac/node-houdini/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romac%2Fnode-houdini/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266053824,"owners_count":23869496,"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":[],"created_at":"2024-11-06T02:05:39.105Z","updated_at":"2025-07-20T01:31:44.649Z","avatar_url":"https://github.com/romac.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# node-houdini [![Dependencies Status](https://david-dm.org/romac/node-houdini.png)](https://david-dm.org/romac/node-houdini)\n\n\u003e Node.js bindings for [Houdini](https://github.com/vmg/houdini), a text escaping library by GitHub.\n\n**Bundled Houdini version:** [e6f0ec96b85578a2fd8ab79af84493cad3a84cfb](https://github.com/vmg/houdini/commit/e6f0ec96b85578a2fd8ab79af84493cad3a84cfb)\n\nFrom [Houdini's README](https://github.com/vmg/houdini#readme):\n\nHoudini is a simple API for escaping text for the web. And unescaping it. But that kind of breaks the joke in the name so nevermind.\n\n- HTML escaping follows the OWASP suggestion. All other entities are left as-is.\n\n        \u0026 --\u003e \u0026amp;\n        \u003c --\u003e \u0026lt;\n        \u003e --\u003e \u0026gt;\n        \" --\u003e \u0026quot;\n        ' --\u003e \u0026#x27;     \u0026apos; is not recommended\n        / --\u003e \u0026#x2F;     forward slash is included as it helps end an HTML entity\n\n- HTML unescaping is fully RFC-compliant. Yes, that's the 253 different entities for you, and decimal/hex code point specifiers.\n\n- URI escaping and unescaping is fully RFC-compliant.\n\n- URL escaping and unescaping is the same as generic URIs, but spaces are changed to `+`.\n\n## Installation\n\n    $ npm install -g node-gyp\n    $ npm install houdini\n\n## Usage\n\n```js\nvar houdini = require('houdini');\n\nvar str = 'A \u0026 B \u003e C';\n\nvar escaped = houdini.escapeHTML(str); // A \u0026amp; B \u0026gt; C\n\nvar unescaped = houdini.unescapeHTML(escaped); // A \u0026 B \u003e C\n```\n\n## Methods\n\nAll the methods return the (un)escaped string.\n\n### .escapeHTML(str, secure = false)\n### .unescapeHTML(str)\n### .escapeXML(str)\n### .escapeURL(str)\n### .unescapeURL(str)\n### .escapeURI(str)\n### .unescapeURI(str)\n### .escapeHREF(str)\n### .escapeJS(str)\n### .unescapeJS(str)\n\n## License\n\nnode-houdini is released under the [MIT license](http://romac.mit-license.org).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromac%2Fnode-houdini","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromac%2Fnode-houdini","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromac%2Fnode-houdini/lists"}