clipboard/utils/normalizeclipboarddata
module
Functions
-
normalizeClipboardData( data ) → string
internalmodule:clipboard/utils/normalizeclipboarddata~normalizeClipboardData
Removes some popular browser quirks out of the clipboard data (HTML). Removes all HTML comments. These are considered an internal thing and it makes little sense if they leak into the editor data.
Parameters
data : string
The HTML data to normalize.
Returns
string
Normalized HTML.