Best way to purge innerHTML from a Firefox Extension
问题 I'm running web-ext lint and getting back a few errors like this: UNSAFE_VAR_ASSIGNMENT Unsafe assignment to innerHTML Due to both security and performance concerns, this may not be set using dynamic values which have not been adequately sanitized. This can lead to security issues or fairly serious performance degradation. The code in question is basically doing: var html = '<style>body { margin: 0; } iframe { border: none; }' + '</style><iframe src="' + URL.createObjectURL(blob) + '" width=