<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://docs-old.ckeditor.com/index.php?action=history&amp;feed=atom&amp;title=CKEditor_3.x%2FHowto%2FHTML_Output</id>
		<title>CKEditor 3.x/Howto/HTML Output - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://docs-old.ckeditor.com/index.php?action=history&amp;feed=atom&amp;title=CKEditor_3.x%2FHowto%2FHTML_Output"/>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKEditor_3.x/Howto/HTML_Output&amp;action=history"/>
		<updated>2026-05-19T12:17:40Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.1</generator>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKEditor_3.x/Howto/HTML_Output&amp;diff=5891&amp;oldid=prev</id>
		<title>Anna: Minor formatting changes</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKEditor_3.x/Howto/HTML_Output&amp;diff=5891&amp;oldid=prev"/>
				<updated>2011-03-07T12:34:29Z</updated>
		
		<summary type="html">&lt;p&gt;Minor formatting changes&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 12:34, 7 March 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot; &gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If you want CKEditor to output valid HTML4 code instead of XHTML, you should configure the behavior of the &amp;lt;code&amp;gt;[http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#dataProcessor dataProcessor]&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If you want CKEditor to output valid HTML4 code instead of XHTML, you should configure the behavior of the &amp;lt;code&amp;gt;[http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#dataProcessor dataProcessor]&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For some tips on how to achieve this, check the [[CKEditor 3.x/Developers Guide/Output Formatting|Output Formatting]] section of [[CKEditor 3.x/Developers Guide|CKEditor 3.x Developer's Guide]] as well as the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot;&lt;/del&gt;Output HTML&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot; &lt;/del&gt;(&amp;lt;code&amp;gt;output_html.html&amp;lt;/code&amp;gt;) and &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot;&lt;/del&gt;Output XHTML&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot; &lt;/del&gt;(&amp;lt;code&amp;gt;output_xhtml.html&amp;lt;/code&amp;gt;) samples that can be found in the &amp;lt;code&amp;gt;_samples&amp;lt;/code&amp;gt; directory of CKEditor installation package.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For some tips on how to achieve this, check the [[CKEditor 3.x/Developers Guide/Output Formatting|Output Formatting]] section of [[CKEditor 3.x/Developers Guide|CKEditor 3.x Developer's Guide]] as well as the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''&lt;/ins&gt;Output HTML&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;''' &lt;/ins&gt;(&amp;lt;code&amp;gt;output_html.html&amp;lt;/code&amp;gt;) and &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''&lt;/ins&gt;Output XHTML&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;''' &lt;/ins&gt;(&amp;lt;code&amp;gt;output_xhtml.html&amp;lt;/code&amp;gt;) samples that can be found in the &amp;lt;code&amp;gt;_samples&amp;lt;/code&amp;gt; directory of CKEditor installation package.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If, for example, you want CKEditor to output the self-closing tags in the HTML4 way, creating &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; elements instead of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, configure the &amp;lt;code&amp;gt;selfClosingEnd&amp;lt;/code&amp;gt; setting in the following way.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If, for example, you want CKEditor to output the self-closing tags in the HTML4 way, creating &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; elements instead of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, configure the &amp;lt;code&amp;gt;selfClosingEnd&amp;lt;/code&amp;gt; setting in the following way.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key ckeditor_docsold:diff:version:1.11a:oldid:5779:newid:5891 --&gt;
&lt;/table&gt;</summary>
		<author><name>Anna</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKEditor_3.x/Howto/HTML_Output&amp;diff=5779&amp;oldid=prev</id>
		<title>Anna: Article contents added</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKEditor_3.x/Howto/HTML_Output&amp;diff=5779&amp;oldid=prev"/>
				<updated>2011-02-10T12:53:17Z</updated>
		
		<summary type="html">&lt;p&gt;Article contents added&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{#CUSTOMTITLE:How Do I Output HTML Instead of XHTML Code Using CKEditor?}}&lt;br /&gt;
If you want CKEditor to output valid HTML4 code instead of XHTML, you should configure the behavior of the &amp;lt;code&amp;gt;[http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#dataProcessor dataProcessor]&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For some tips on how to achieve this, check the [[CKEditor 3.x/Developers Guide/Output Formatting|Output Formatting]] section of [[CKEditor 3.x/Developers Guide|CKEditor 3.x Developer's Guide]] as well as the &amp;quot;Output HTML&amp;quot; (&amp;lt;code&amp;gt;output_html.html&amp;lt;/code&amp;gt;) and &amp;quot;Output XHTML&amp;quot; (&amp;lt;code&amp;gt;output_xhtml.html&amp;lt;/code&amp;gt;) samples that can be found in the &amp;lt;code&amp;gt;_samples&amp;lt;/code&amp;gt; directory of CKEditor installation package.&lt;br /&gt;
&lt;br /&gt;
If, for example, you want CKEditor to output the self-closing tags in the HTML4 way, creating &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; elements instead of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, configure the &amp;lt;code&amp;gt;selfClosingEnd&amp;lt;/code&amp;gt; setting in the following way.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
CKEDITOR.on( 'instanceReady', function( ev )&lt;br /&gt;
    {&lt;br /&gt;
        ev.editor.dataProcessor.writer.selfClosingEnd = '&amp;gt;';&lt;br /&gt;
    });&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Anna</name></author>	</entry>

	</feed>