# HTML Tag Fliter(Java org.jsoup.safety.Whitelist)
## HTML Tag Fliter
Sometimes we would like to deleted some HTML-tags in a email(if we use html tag in our email.), to avoid hacker attack or something else.
We can use org.jsoup.safety.Whitelist to achieve it.
## Documentation: https://jsoup.org/apidocs/org/jsoup/safety/Whitelist.html
## usage:
### addAttributes(String tag, String... attributes)
Add a list of allowed attributes to a tag.
```java=
addAttributes("a", "href")
```
### addProtocols(String tag, String attribute, String... protocols)
Add allowed URL protocols for an element's URL attribute.
```java=
addProtocols("a", "href","http","https")
```
### addTags(String... tags)
Add allowed URL protocols for an element's URL attribute.
```java=
addTags("html","body","p")
```