{"id":26663173,"url":"https://github.com/startpolymer/s-html","last_synced_at":"2025-06-12T18:07:06.129Z","repository":{"id":11322585,"uuid":"69298444","full_name":"StartPolymer/s-html","owner":"StartPolymer","description":"Element wrapper of .innerHTML for data binding with HTML elements.","archived":false,"fork":false,"pushed_at":"2022-06-09T20:40:36.000Z","size":6,"stargazers_count":7,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-11T21:12:09.076Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","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/StartPolymer.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":"2016-09-26T22:35:12.000Z","updated_at":"2020-11-20T04:54:20.000Z","dependencies_parsed_at":"2022-07-21T21:32:28.948Z","dependency_job_id":null,"html_url":"https://github.com/StartPolymer/s-html","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/StartPolymer/s-html","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StartPolymer%2Fs-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StartPolymer%2Fs-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StartPolymer%2Fs-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StartPolymer%2Fs-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StartPolymer","download_url":"https://codeload.github.com/StartPolymer/s-html/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StartPolymer%2Fs-html/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259518832,"owners_count":22870301,"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":"2025-03-25T14:20:12.357Z","updated_at":"2025-06-12T18:07:06.110Z","avatar_url":"https://github.com/StartPolymer.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u0026lt;s-html\u0026gt;\n\nElement wrapper of `.innerHTML` for data binding with HTML elements.\n\n## Usage\n\n### Example 1\n\nLocalize text with HTML elements using [app-localize-behavior](https://github.com/PolymerElements/app-localize-behavior).\n\nlocales.json\n```json\n{\n\"text\": \"\u003ca href=\\\"/settings\\\"\u003eSettings\u003c/a\u003e\"\n}\n```\n\nHTML\n```html\n\u003cs-html html=\"[[localize('text')]]\"\u003e\u003c/s-html\u003e\n```\n\n### Example 2\n\nUsing `span` element for content styled with CSS.\n\nlocales.json\n```json\n{\n\"text\": \"\u003ca class=\\\"red\\\" href=\\\"/settings\\\"\u003eSettings\u003c/a\u003e\"\n}\n```\n\nCSS\n```css\n.red {\n  color: red;\n}\n```\n\nHTML\n```html\n\u003cs-html html=\"[[localize('text')]]\"\u003e\u003cspan\u003e\u003c/span\u003e\u003c/s-html\u003e\n```\n\n### Example 3\n\nUnescape escaped HTML elements.\n\nlocales.json\n```json\n{\n\"text\": \"polymer \u0026lt;br\u0026gt;\"\n}\n```\n\nHTML\n```html\n\u003cs-html unescape html=\"[[localize('text')]]\"\u003e\u003c/s-html\u003e\n```\n\n## Installation\n\n`bower i s-html -S`\n\n## License\n\nMIT: [StartPolymer/license](https://github.com/StartPolymer/license)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstartpolymer%2Fs-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstartpolymer%2Fs-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstartpolymer%2Fs-html/lists"}