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.