Module

clipboard/utils/normalizeclipboarddata

@ckeditor/ckeditor5-clipboard/src/utils/normalizeclipboarddata

module

Filtering

Functions

  • normalizeClipboardData( data ) → string

    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.