Commit e37292d
Add missing mappings for named HTML entities (#174)
* Add missing named HTML entity mappings
* Get rid of chained method calls due to compiler resource utilization issues
* Dynamically calculate longest entity name
* Refactor map building to happen in static initializer
* Add comment linking to source data
* Make formatting consistent
* Update Javadoc
* Update Javadoc
* Revert Javadoc changes
* Update decodeEntityAt to return code-units instead of code-points
* Update character literal
* Update list of named character references using official spec
* Simplify long to char conversion
* Refactor decodeEntityAt to appendDecodedEntity
* Remove unused imports
* Add Nullable annotations
* Add unit test to check boundary condition
* Update comment1 parent 7cdb5eb commit e37292d
5 files changed
Lines changed: 2213 additions & 330 deletions
File tree
- src
- main/java/org/owasp/html
- test/java/org/owasp/html
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1442 | 1442 | | |
1443 | 1443 | | |
1444 | 1444 | | |
1445 | | - | |
| 1445 | + | |
1446 | 1446 | | |
1447 | 1447 | | |
1448 | 1448 | | |
| |||
1473 | 1473 | | |
1474 | 1474 | | |
1475 | 1475 | | |
1476 | | - | |
| 1476 | + | |
1477 | 1477 | | |
1478 | 1478 | | |
1479 | 1479 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 57 | + | |
| 58 | + | |
61 | 59 | | |
62 | 60 | | |
63 | 61 | | |
| |||
0 commit comments