Hi there,
I've already mentioned in the previous thread about my problem: http://www.telerik.com/community/forums/aspnet-ajax/editor/formatting-within-conten.aspx. But I thought I start a new thread as the problem has gone beyond Telerik editor randomly adding in spaces. Basically I just converted my website from a very old version of CuteEditor to Telerik RadEditor. There are thousands of documents in the database that were created by this old CuteEditor and have very very badly formatted HTML. At first when I put in Telerik editor, the first symptoms were tables getting random spaces put into table cell everytime when the user is switching from design view to html view. Weird syntax which I already described in my previous thread's comments. So then I tried removing the ConvertToXHTML filter, seems to stop adding in pages and pages of space. But then in other documents it was still adding in spaces in between list items and table cells. I tried removing all filters except for IndentHTML filter and still I find the RadEditor is still trying to messing with the HTML somehow.
For example:
Badly formatted HTML like this:
is turning into this:
Is this a bug? Also random </o:p> are getting inserted into the code. I know that RadEditor requires xhtml compliant HTML to work well but I have thousands of documents in the database and my users do not know HTML. Is there a solution you can recommend? I looked at stuff like HTMLPurifier and I used the example above on their demo and it seems to clean the HTML quite well. Problem is HTMLPurifier is a php product. Does anyone have any experience with this or any suggestions? Any help or tips at all would be greatly appreciated.
Thanks.
I've already mentioned in the previous thread about my problem: http://www.telerik.com/community/forums/aspnet-ajax/editor/formatting-within-conten.aspx. But I thought I start a new thread as the problem has gone beyond Telerik editor randomly adding in spaces. Basically I just converted my website from a very old version of CuteEditor to Telerik RadEditor. There are thousands of documents in the database that were created by this old CuteEditor and have very very badly formatted HTML. At first when I put in Telerik editor, the first symptoms were tables getting random spaces put into table cell everytime when the user is switching from design view to html view. Weird syntax which I already described in my previous thread's comments. So then I tried removing the ConvertToXHTML filter, seems to stop adding in pages and pages of space. But then in other documents it was still adding in spaces in between list items and table cells. I tried removing all filters except for IndentHTML filter and still I find the RadEditor is still trying to messing with the HTML somehow.
For example:
Badly formatted HTML like this:
<p><
a
href
=
"#17"
>17. Can you help me interpret and operationalize the nutrition standards
of the food and beverage policy?
</
p
>
<
p
>
</
a
><
a
href
=
"#18"
>18. EXAMPLES</
a
>
</
p
>
is turning into this:
<
P
><
A
href
=
"#17"
>17. Can you help me interpret and operationalize the nutrition standards of the food and beverage policy? </
A
></
P
>
</
P
>
<
P
>
<
P
>
<
DIV
_rdEditor_temp
=
"1"
><
A
href
=
"#17"
></
DIV
>
</
A
></
P
>
<
A
href
=
"#17"
></
A
></
P
>
<
A
href
=
"#17"
>
<
P
><
A
href
=
"#18"
>18. EXAMPLES</
A
> </
P
>
</
A
></
A
>
<
P
></
A
></
P
>
Is this a bug? Also random </o:p> are getting inserted into the code. I know that RadEditor requires xhtml compliant HTML to work well but I have thousands of documents in the database and my users do not know HTML. Is there a solution you can recommend? I looked at stuff like HTMLPurifier and I used the example above on their demo and it seems to clean the HTML quite well. Problem is HTMLPurifier is a php product. Does anyone have any experience with this or any suggestions? Any help or tips at all would be greatly appreciated.
Thanks.