From: <ms...@ma...> - 2002-11-11 17:29:17
|
Hi I need to convert plain text (with some formatting) to HTML format, and, fortunately, this module provide this functionality (among other). :) Having downloaded the 0.2 version, I tried to write a simple program to convert from text to HTML. It turned to out to be not that easy. Fortunately, in mailing list archives I found a suggestion to download the snapshot and proceed with publish_string helper. This works great, thank you. I have two questions, however. It looks like I cannot get only the body of the text (what is located between <body> ... </body>) without some addtional programming, nor it's possible to get rid of use stylesheets at all. What would be the best way to accomplish this? The second comes from my rather extensive use of Outlook (yes, a Microsoft product) "highlighting". In cases, when the path or the file name contain spaces, it's very convenient to just enclose the whole consruction in angle brackets (like, <schema://some path/with/spaces/and a file>), and you do not really have to worry about converting those in %20. What would you say about such a feature? Best Regards, -- Misha |