开发者

Interpret RTF on server and echo the result in HTML tags, re-using bold, italic, ul and lists

开发者 https://www.devze.com 2023-03-01 23:24 出处:网络
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'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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号