htmlwhitelist 0.5.3 htmlwhitelist: ^0.5.3 copied to clipboard
This library can be used to clean up html on the server. The main purpose is to convert html from an untrusted source to a version that's safe for rendering.
0.5.3 #
- Update test dependency for Dart 2.0
0.5.2 #
- Moving to Dart 2.0 compatibility
0.5.1 #
- Added examples
0.5.0 #
- Introduced strong mode
0.4.1 #
- Added documentation to
Uris
- Tweaks in implementation
0.4.0 #
- Added
Uris
class to contain various utility functions for inspecting and filtering uris - Restrict
href
ina
andcite
inblockquote
andq
to valid uris with the schemes blank,http
orhttps
- Only add
rel="nofollow"
for external references - Restrict
src
inimg
to valid uris with the schemes blank,http
,https
ordata
0.3.0 #
- Replaced
AddAttribute
byAttributeCollector
for more flexibility in the generated attributes - Renamed
forceAttribute
tosetAttribute
to better reflect what it does - The
originalAttributes
are now in source order and unmodifiable
0.2.1 #
- Tweaks in implementation
0.2.0 #
- Added documentation
- Added tests
- Removed
when
fromforceAttribute
- Added
when
toWhitelist.tags
,Whitelist.attributes
andWhitelist.extraAttributes
- Several minor improvements
0.1.0 #
- Initial implementation