-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Upgrade the whitelist in sanitizer to html 5 #89
Comments
There are some other tags missing as well, for example h1, h2, ... |
I'd be happy to take this up. I've already made the changes in our installation. |
Awesome ! Let us know, if you need any help... |
I made the changes to lib/htmlparser/htmlparser.js and committed them to my fork (ijonlester/angular.js). I left the deprecated tags in (for backward compatibility), added in the HTML5 tags and missing HTML4 tags. In cases where there seemed to be some disagreement whether an element is inline or block, I added it to both (I compared W3Schools HTML5 tag list with the tag lists in the parser and against the list in the OP). I'm rather new to using github, so I'm not sure how to initiate a pull request. In response to your offer of help, how do I go about requesting a pull? |
// create new branch
git checkout -b my-fix
// do the changes, tests...
// push the changes to your github
git push origin my-fix Then go to github web interface, open your branch, e.g. And click "PUL REQUEST" - you can find this button in the top right corner... |
http://simon.html5.org/html5-elements
The text was updated successfully, but these errors were encountered: