Cleaning the code in the edited content is one important new addition in KTML 4. You have the option to choose from cleaning only the Word tags, only the CSS formatting, or cleaning all the formatting tags inside the code. Saving the code as XHTML compliant is also one of KTML's possibilities.
To make this completely possible, you must however install and configure the HTML Tidy utility:
Download and install the HTML Tidy version suited for your particular server configuration. You need a version released in 2005 or higher.
If you are using a Microsoft Windows operating system on the server, you must also allow the web user to execute the tidy command line executable. Open the <windows_root>\System32\ folder.
Right-click on the cmd.exe file and select Properties. On the Security tab select the user as which the web server runs and check the Read and Execute options in the Allow column.
Click OK to apply the changes.
On any operating system you must grant read and write access rights to the user that runs the web server to the includes/ktm/plugins/temp folder and its subfolders.
Reload the page containing the KTML control and attempt to save the content as XHTML compliant code, or try to clean existing content.
To install the HTML Tidy library, you must:
Download the windows version of the library here.
Unzip the executable inside the downloaded package to a folder of choice - using a folder that is set up in the system path is recommended, for it will allow execution without entering the entire path.
You're done.
To install HTML Tidy on Unix based systems;
Download the library version corresponding to your type of Unix (Linux, Mac OS, Solaris, etc) here.
Unzip the downloaded package to a folder of choice. The file contained inside is the executable file for Unix.