public/ckeditor/4.4dev/core/htmldataprocessor.js
function cleanBogus( block ) {
			var bogus = [];
			var last = getLast( block ), node, previous;

			if ( last ) {
				// Check for bogus at the end of this block.
				// e.g. <p>foo<br /></p>
				maybeBogus( last, 1 ) && bogus.push( last );

				while ( last ) {
					// Check for bogus at the end of any pseudo block contained.
					if ( isBlockBoundary( last ) && ( node = getPrevious( last ) ) && maybeBogus( node ) ) {
						// Bogus must have inline proceeding, instead single BR between two blocks,
						// is considered as filler, e.g. <hr /><br /><hr />
						if ( ( previous = getPrevious( node ) ) && !isBlockBoundary( previous ) )
							bogus.push( node );
						// Convert the filler into appropriate form.
						else {
							createFiller( isOutput ).insertAfter( node );
							node.remove();
						}
					}

					last = last.previous;
				}
			}

			// Now remove all bogus collected from above.
			for ( var i = 0 ; i < bogus.length ; i++ )
				bogus[ i ].remove();
		}
function cleanBogus( block ) {
			var bogus = [];
			var last = getLast( block ), node, previous;

			if ( last ) {
				// Check for bogus at the end of this block.
				// e.g. <p>foo<br /></p>
				maybeBogus( last, 1 ) && bogus.push( last );

				while ( last ) {
					// Check for bogus at the end of any pseudo block contained.
					if ( isBlockBoundary( last ) && ( node = getPrevious( last ) ) && maybeBogus( node ) ) {
						// Bogus must have inline proceeding, instead single BR between two blocks,
						// is considered as filler, e.g. <hr /><br /><hr />
						if ( ( previous = getPrevious( node ) ) && !isBlockBoundary( previous ) )
							bogus.push( node );
						// Convert the filler into appropriate form.
						else {
							createFiller( isOutput ).insertAfter( node );
							node.remove();
						}
					}

					last = last.previous;
				}
			}

			// Now remove all bogus collected from above.
			for ( var i = 0 ; i < bogus.length ; i++ )
				bogus[ i ].remove();
		}
function cleanBogus ( block ) { var bogus = [ ] ; var last = getLast ( block ) , node , previous ; if ( last ) { // Check for bogus at the end of this block. // e.g. <p>foo<br /></p> maybeBogus ( last , 1 ) && bogus . push ( last ) ; while ( last ) { // Check for bogus at the end of any pseudo block contained. if ( isBlockBoundary ( last ) && ( node = getPrevious ( last ) ) && maybeBogus ( node ) ) { // Bogus must have inline proceeding, instead single BR between two blocks, // is considered as filler, e.g. <hr /><br /><hr /> if ( ( previous = getPrevious ( node ) ) && ! isBlockBoundary ( previous ) ) bogus . push ( node ) ; // Convert the filler into appropriate form. else { createFiller ( isOutput ) . insertAfter ( node ) ; node . remove ( ) ; } } last = last . previous ; } } // Now remove all bogus collected from above. for ( var i = 0 ; i < bogus . length ; i ++ ) bogus [ i ] . remove ( ) ; }
Removes all bogus inside of this block, and to convert fillers into the proper form.
Removes all bogus inside of this block and to convert fillers into the proper form .