Function ammonia::clean
[−]
[src]
pub fn clean(src: &str) -> String
Clean HTML with a conservative set of defaults.
- Formatting:
b
,blockquote
,br
,code
,dd
,del
,dl
,dt
,em
,h1
,h2
,h3
,hr
,i
,kbd
,li
,ol
,p
,pre
,s
,strike
,strong
,sub
,sup
,ul
- Tables:
table
,tbody
,td
,th
,thead
,tr
- Links:
a
,img
- Attributes:
<* title="">
,<a href="">
,<img width="" height="" src="" alt="">
- URL schemes in links and images:
http
,https
,mailto
- Relative URLs are not allowed, to prevent cross-site request forgery.