@@ -14,7 +14,7 @@ defmodule Helper.Sanitizer do
14
14
Meta . strip_comments ( )
15
15
16
16
Meta . allow_tag_with_uri_attributes ( "a" , [ "href" ] , [ "http" , "https" ] )
17
- Meta . allow_tag_with_these_attributes ( "a" , [ "name" , "title" ] )
17
+ Meta . allow_tag_with_these_attributes ( "a" , [ "name" , "title" , "class" ] )
18
18
19
19
# Meta.allow_tag_with_these_attributes("strong", [])
20
20
# Meta.allow_tag_with_these_attributes("em", [])
@@ -23,6 +23,18 @@ defmodule Helper.Sanitizer do
23
23
Meta . allow_tag_with_these_attributes ( "mark" , [ "class" ] )
24
24
Meta . allow_tag_with_these_attributes ( "code" , [ "class" ] )
25
25
# Meta.allow_tag_with_these_attributes("p", [])
26
+ Meta . allow_tag_with_these_attributes ( "h1" , [ "class" ] )
27
+ Meta . allow_tag_with_these_attributes ( "h2" , [ "class" ] )
28
+ Meta . allow_tag_with_these_attributes ( "h3" , [ "class" ] )
29
+ Meta . allow_tag_with_these_attributes ( "h4" , [ "class" ] )
30
+ Meta . allow_tag_with_these_attributes ( "h5" , [ "class" ] )
31
+ Meta . allow_tag_with_these_attributes ( "h6" , [ "class" ] )
32
+ Meta . allow_tag_with_these_attributes ( "p" , [ "class" ] )
33
+ Meta . allow_tag_with_these_attributes ( "img" , [ "class" , "src" ] )
34
+ Meta . allow_tag_with_these_attributes ( "div" , [ "class" ] )
35
+ Meta . allow_tag_with_these_attributes ( "ul" , [ "class" ] )
36
+ Meta . allow_tag_with_these_attributes ( "ol" , [ "class" ] )
37
+ Meta . allow_tag_with_these_attributes ( "li" , [ "class" ] )
26
38
27
39
Meta . strip_everything_not_covered ( )
28
40
end