htmlwhitelist 0.5.1 htmlwhitelist: ^0.5.1 copied to clipboard
This library can be used to clean up html on the server. The main purpose is to process html from an untrusted source and make sure that if the html is rendered by your application it doesn't contain [...]
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