Sign up (with export icon)

clipboard/utils/normalizeclipboarddata

Api-module icon module

Functions

  • Chevron-right icon

    normalizeClipboardData( data ) → string
    internal

    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.