17 lines
448 B
Plaintext
17 lines
448 B
Plaintext
|
local record Web_Sanitize
|
||
|
sanitize_html: function(unsafe_html: string): string
|
||
|
extract_text: function(unsafe_html: string): string
|
||
|
sanitize_style: function(unsafe_style_attributes: string): string
|
||
|
|
||
|
record whitelist
|
||
|
clone: function(): whitelist
|
||
|
tags: table
|
||
|
add_attributes: table
|
||
|
self_closing: table
|
||
|
end
|
||
|
|
||
|
Sanitizer: function(parameters: table): function(unsafe_html: string): string
|
||
|
end
|
||
|
|
||
|
return Web_Sanitize
|