Context, CSSContext, HTMLContext, JSContext added.
The following changes made :-
- Context now contains `level`, `whiteList` and 3 constructors
- util.Levels to contain strictness levels `MODERATE` and `STRICT`
- Filter.java has customFilter
- Filter.alphanumericsOnlyFilter made a static method
- useInBody implemented for HTMLContext
insignificant change
`LENIANT` level re-added. Definition of `STRICT` changed.
Following changes made :-
- STRICT_WHITELIST member added
- htmlStrictFilter method added
- blacklistHTMLFilter method added
Following changed made :-
- usage of `Filter.alphanumericsOnlyFilter` replaced by `Filter.htmlStrictFilter`
- added `LENIANT` behavior in HTMLContext.useInBody
temporary commit
Null pointer exception problem resolved in Filter.htmlStrictFilter
Two tests added for HTMLContext.useInBody for Levels.STRICT
HTMLEncode is no longer a static method
The following changes were made :-
- `blacklistHTMLFilter`, `customFilter` are no longer static methods.
- `whitelist` does not contain alphatets anymore -- we could just check using Character.isLetter instead
More tests added to testStrictUseInBody, testModerateUseInBody, testLeniantUseInBody
hoenheim.exceptions.InvalidSeverityException exception type added
... now throws `InvalidSeverityException` for invalid severity type
some non-important changes
issues file created
The following changes were made :-
- Corrected Strictness check in HTMLContext constructor
- useAsTagAttributes is now implemented for all strictness levels
The following changes were made :-
- STRICT_ATTRIBUTE_WHITELIST added and populated
- method englishAlphabetsOnlyFilter added
- method whitelistedAttributeFilter added
tests for useAsTagAttributes added
Context.useAsTagAttributes now `throws InvalidSeverityException`