DHTMLEdit - Pre Sale Questions
html cleaning
Thread Starter: Matthias Started: 5/10/2007 12:55 PM UTC
Replies: 3
html cleaning
Hallo,

I need to provide a copy / paste function able to process extensive MS Word
content. Is DHTMLEdit prepared to restrict the resulting HTML code to basic
tags like <p>, <ul> etc. and to strip off all other code?

Thanks,
Matthias.
Re: html cleaning
Hello Matthias,

Yes, it is - the Source property getter automatically strips off any MS Word custom tags.


-Nicholas
Re: html cleaning

How exactly does the Source getter strip MS Formatting?

I am pasting text from MS Word and when saving the Source (which invokes the corresponding get function)  the contents still contain MS HTML formatting markup and mess.
Re: html cleaning
Hello Andy:

How exactly does the Source getter strip MS Formatting?

See the block with the comment
       { Most likely a Microsoft Word custom tag }
in ProfDHTMLEdit.pas.

I am pasting text from MS Word and when saving the Source (which invokes the corresponding get function) the contents still contain MS HTML formatting markup and mess.

Have you set the SourceCodePreservation property to False?


-Nicholas

P.S.  Since you are a registered user, please post your questions to the registered users forum:
http://profgrid.newsgrouphosting.com/profgrid.htmledit.support