This is the discussion forum for the HtmlEditor. See also the
HtmlEditor home page, where you can download the control, and the
Documentation Wiki, a collaborative project for documenting the control.
New version's (without MSHTML dependency) closing tags problem
Posted by:
antenna (77.35.41.---)
Date: Tuesday, 07-Aug-2007, 04:36:06
Hi, I use HtmlEditor for my projects for quite a long time. When I upgraded to new version (without MSHTML-file dependencies) I notice that behaviour of list tags generation has changed.
When I create simple list in old version, the GetDocumentSource() method returns (for example):
<UL>
<LI>item</LI>
<LI>item2</LI>
<LI>item2</LI>
</UL>
But new version's generated output is:
<UL>
<LI>item
<LI>item2
<LI>item2</LI>
</UL>
As you may notice, there're no closing <LI> tags in addition to opening tags. But I need these tags to be properly closed as it was in old version. I could use some regular expression magic to achieve it, but in case of possibility of nested lists, solving this task could become a trick.
So, any suggestions how to force the new version to close tags properly?