html2odt and xhtml2odt
I plan to use TinyMCE in my applications. TinyMCE, unlike Kupu, stores (simple) HTML, not XHTML. I wrote a function `html2xhtml` to convert from HTML to XHTML. I works in simple cases, but there is of course some more work to do. And of course it is suboptimal to first convert HTML to XHTML, then from XHTML to ODF-XML. Now I saw that you have a file html2odt.py, almost the same as xhtml2odt.py, and apparently not used. Are there plans to have a html() function in template statements, similar to xhtml() but expecting plain HTML for input? Can you comment on this?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Appy Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Luc Saffre
- Solved:
- 2011-05-27
- Last query:
- 2011-05-27
- Last reply:
- 2011-05-27
Hi Luc,
No there is no plan to make a html2odt conversion. Where did you see html2odt.py ? There is no such file in appy.pod.
Gaetan
Luc Saffre (luc-saffre) said : | #2 |
Oops. You are right. Seems that I created that file myself and then forgot that I did so... Sorry.
OK, so I'll continue with my html2xhtml() function.
In case anybody is interested, here it is:
http://
Luc