I've been crawling the web for days now and couldn't find exactly what I'm looking for. So hopefully someone here has an answer.
I'd like to build a webpage that is able to interpret an .rtf document on the server and then echo the text in the browser re-using only the bold, italic, underlined tags and bulleted and numbered list tags. Preferably using PHP, but if it's something else, that would be fine 开发者_C百科(I'd just have learn that language then a bit too, I guess).
Many thanks in advance!
Cheers!
There's an RTF to HTML class on PHPClasses... no idea how goo dit is though.
Check out Markdown. It's a text to HTML format very similar to what you find here on StackOverflow.
There are several PHP ports. I suggest PHP Markdown.
精彩评论