@@ -14,16 +14,20 @@ class Markdown(Component):
14
14
- className (string; optional): Class name of the container element
15
15
- containerProps (dict; optional): An object containing custom element props to put on the container
16
16
element such as id or style
17
+ - dangerously_allow_html (boolean; optional): A boolean to control raw HTML escaping.
18
+ Setting HTML from code is risky because it's easy to
19
+ inadvertently expose your users to a cross-site scripting (XSS)
20
+ (https://en.wikipedia.org/wiki/Cross-site_scripting) attack.
17
21
18
22
Available events: """
19
23
@_explicitize_args
20
- def __init__ (self , children = None , id = Component .UNDEFINED , className = Component .UNDEFINED , containerProps = Component .UNDEFINED , ** kwargs ):
21
- self ._prop_names = ['children' , 'id' , 'className' , 'containerProps' ]
24
+ def __init__ (self , children = None , id = Component .UNDEFINED , className = Component .UNDEFINED , containerProps = Component .UNDEFINED , dangerously_allow_html = Component . UNDEFINED , ** kwargs ):
25
+ self ._prop_names = ['children' , 'id' , 'className' , 'containerProps' , 'dangerously_allow_html' ]
22
26
self ._type = 'Markdown'
23
27
self ._namespace = 'dash_core_components'
24
28
self ._valid_wildcard_attributes = []
25
29
self .available_events = []
26
- self .available_properties = ['children' , 'id' , 'className' , 'containerProps' ]
30
+ self .available_properties = ['children' , 'id' , 'className' , 'containerProps' , 'dangerously_allow_html' ]
27
31
self .available_wildcard_properties = []
28
32
29
33
_explicit_args = kwargs .pop ('_explicit_args' )
0 commit comments