Title: Add option to strip tags from sanitizer · Issue #27 · html5lib/html5lib-python · GitHub
Open Graph Title: Add option to strip tags from sanitizer · Issue #27 · html5lib/html5lib-python
X Title: Add option to strip tags from sanitizer · Issue #27 · html5lib/html5lib-python
Description: To quote @rubys from http://code.google.com/p/html5lib/issues/detail?id=62: My inclination is to flip this entirely. It seems inconsistent that evil CSS is stripped, and unknown attributes are stripped, but unknown elements are escaped, ...
Open Graph Description: To quote @rubys from http://code.google.com/p/html5lib/issues/detail?id=62: My inclination is to flip this entirely. It seems inconsistent that evil CSS is stripped, and unknown attributes are stri...
X Description: To quote @rubys from http://code.google.com/p/html5lib/issues/detail?id=62: My inclination is to flip this entirely. It seems inconsistent that evil CSS is stripped, and unknown attributes are stri...
Opengraph URL: https://github.com/html5lib/html5lib-python/issues/27
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add option to strip tags from sanitizer","articleBody":"To quote @rubys from http://code.google.com/p/html5lib/issues/detail?id=62:\n\n\u003e My inclination is to flip this entirely. It seems inconsistent that evil CSS is\n\u003e stripped, and unknown attributes are stripped, but unknown elements are escaped, and\n\u003e escaped poorly (what happens if an attribute for this element has a double quote in it?).\n\u003e \n\u003e I mean, who wants to see `\u003cobject\u003e` tags. It is bad enough that YouTube videos are\n\u003e stripped, but rubbing salt in the would by showing a bunch of gibberish seems\n\u003e entirely unnecessary.\n\u003e \n\u003e I'd suggest a `expose_disallowed_elements=False` class variable which can be set to\n\u003e True if somebody really wants the current behavior.\n\nWith #26 this has become possible, but a nicer API would be better.\n","author":{"url":"https://github.com/gsnedders","@type":"Person","name":"gsnedders"},"datePublished":"2013-04-27T13:09:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/27/html5lib-python/issues/27"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d4e04a47-fde6-d959-1fc6-c823a1ccf485 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C40E:3545E1:25F8DF8:316F3CD:696B5ABB |
| html-safe-nonce | 98ca091175dbf2dadd08b3b75e2ebd765a83209fc11cf5d1596d5b6775185c9a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDBFOjM1NDVFMToyNUY4REY4OjMxNkYzQ0Q6Njk2QjVBQkIiLCJ2aXNpdG9yX2lkIjoiNTY0MTY0NTcxOTQxMjY0MDU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0c99f397b775c823c9122b377ac92a5be0dc8b24443a7571ac73192afdb1751c |
| hovercard-subject-tag | issue:13720742 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/html5lib/html5lib-python/27/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a45782cc593fc8c3124d0e4b5af66b71aeb540f2d1adff47a2675917b61a6f74/html5lib/html5lib-python/issues/27 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a45782cc593fc8c3124d0e4b5af66b71aeb540f2d1adff47a2675917b61a6f74/html5lib/html5lib-python/issues/27 |
| og:image:alt | To quote @rubys from http://code.google.com/p/html5lib/issues/detail?id=62: My inclination is to flip this entirely. It seems inconsistent that evil CSS is stripped, and unknown attributes are stri... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gsnedders |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/html5lib/html5lib-python git https://github.com/html5lib/html5lib-python.git |
| octolytics-dimension-user_id | 4092973 |
| octolytics-dimension-user_login | html5lib |
| octolytics-dimension-repository_id | 9322649 |
| octolytics-dimension-repository_nwo | html5lib/html5lib-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 9322649 |
| octolytics-dimension-repository_network_root_nwo | html5lib/html5lib-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width