2 Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
3 For licensing, see LICENSE.html or http://ckeditor.com/license
8 var spacesRegex = /[\t\r\n ]{2,}|[\t\r\n]/g;
11 * A lightweight representation of HTML text.
15 CKEDITOR.htmlParser.text = function( value )
31 CKEDITOR.htmlParser.text.prototype =
34 * The node type. This is a constant value set to {@link CKEDITOR.NODE_TEXT}.
38 type : CKEDITOR.NODE_TEXT,
41 * Writes the HTML representation of this text to a CKEDITOR.htmlWriter.
42 * @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
45 writeHtml : function( writer, filter )
47 var text = this.value;
49 if ( filter && !( text = filter.onText( text, this ) ) )