Title: HTMLString.Tag.head() does not escape HTML attribute values · Issue #8 · GetmeUK/HTMLString · GitHub
Open Graph Title: HTMLString.Tag.head() does not escape HTML attribute values · Issue #8 · GetmeUK/HTMLString
X Title: HTMLString.Tag.head() does not escape HTML attribute values · Issue #8 · GetmeUK/HTMLString
Description: Example: blah = new HTMLString.Tag('a', { 'href': '/test.html', 'data-test': JSON.stringify({'id': 12, 'test': 'This is a test'}) }); blah.head(); It currently outputs: ...
Open Graph Description: Example: blah = new HTMLString.Tag('a', { 'href': '/test.html', 'data-test': JSON.stringify({'id': 12, 'test': 'This is a test'}) }); blah.head(); It currently outputs:
X Description: Example: blah = new HTMLString.Tag('a', { 'href': '/test.html', 'data-test': JSON.stringify({'id': 12, 'test': 'This is a test'}) }); blah.he...
Opengraph URL: https://github.com/GetmeUK/HTMLString/issues/8
X: @github
Domain: github.com
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"HTMLString.Tag.head() does not escape HTML attribute values","articleBody":"Example:\r\n\r\n```javascript\r\nblah = new HTMLString.Tag('a', { 'href': '/test.html', 'data-test': JSON.stringify({'id': 12, 'test': 'This is a test'}) });\r\nblah.head();\r\n```\r\n\r\nIt currently outputs:\r\n\r\n```html\r\n\u003ca data-test=\"{\"id\":12,\"test\":\"This is a test\"}\" href=\"/test.html\"\u003e\r\n```\r\n\r\nIt should output:\r\n\r\n```html\r\n\u003ca data-test=\"{\u0026quot;id\u0026quot;:12,\u0026quot;test\u0026quot;:\u0026quot;This is a test\u0026quot;}\" href=\"/test.html\"\u003e\r\n```\r\n\r\nOr similar.","author":{"url":"https://github.com/cubiclesoft","@type":"Person","name":"cubiclesoft"},"datePublished":"2018-02-17T19:38:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/8/HTMLString/issues/8"}
Links:
Viewport: width=device-width