RichText/Archived/Rooster/Rooster.gcomp/Support/node_modules/roosterjs/dist/rooster-amd.js
/**
 * Split the HTML string using its fragment info
 * @param html Source html string
 * @returns [String within fragment, String before fragment, String after fragment]
 */
Split the HTML string using its fragment info
@param html Source html string
@returns [String within fragment, String before fragment, String after fragment]
Split the HTML string using its fragment info @param html Source html string @returns [ String within fragment String before fragment String after fragment ]
function splitWithFragment(html) {
    var startIndex = html.indexOf(START_FRAGMENT);
    var endIndex = html.lastIndexOf(END_FRAGMENT);
    if (startIndex >= 0 && endIndex >= 0 && endIndex >= startIndex + START_FRAGMENT.length) {
        var before = html.substr(0, startIndex);
        var after = html.substr(endIndex + END_FRAGMENT.length);
        html = html.substring(startIndex + START_FRAGMENT.length, endIndex);
        return [html, before, after];
    }
    else {
        return [html, null, null];
    }
}
function splitWithFragment ( html ) { var startIndex = html . indexOf ( START_FRAGMENT ) ; var endIndex = html . lastIndexOf ( END_FRAGMENT ) ; if ( startIndex >= 0 && endIndex >= 0 && endIndex >= startIndex + START_FRAGMENT . length ) { var before = html . substr ( 0 , startIndex ) ; var after = html . substr ( endIndex + END_FRAGMENT . length ) ; html = html . substring ( startIndex + START_FRAGMENT . length , endIndex ) ; return [ html , before , after ] ; } else { return [ html , null , null ] ; } }
Split the HTML string using its fragment info
 @param html Source html string
 @returns [String within fragment, String before fragment, String after fragment]
Split the HTML string using its fragment info @param html Source html string @returns [ String within fragment String before fragment String after fragment ]