allow language attributes in text and annotations
This commit is contained in:
parent
6e49032602
commit
ad7c36881c
3 changed files with 4 additions and 4 deletions
|
|
@ -5,7 +5,7 @@ import ox
|
|||
def cleanup_value(value, layer_type):
|
||||
#FIXME: what about other types? location etc
|
||||
if layer_type == 'text':
|
||||
value = ox.sanitize_html(value)
|
||||
value = ox.sanitize_html(value, global_attributes=['lang'])
|
||||
else:
|
||||
value = ox.escape_html(value)
|
||||
return value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue