如何将带有格式的RichTextBox转换为HTML字符串 [英] How do I convert a RichTextBox with Formatting to HTML string

查看:463
本文介绍了如何将带有格式的RichTextBox转换为HTML字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想转换格式为的RichTextBox; (粗体/斜体/项目符号...)转换为HTML字符串.

I would like to convert a RichTextBox with Formatting (Bold/Italic/Bullet...) to HTML string.

推荐答案

了解

Learn the RTF spec and then learn HTML so you can convert RTF instructions for content to HTML content. Or search the net to see if you can find something which will perform that.

HTML也可能不支持RichTextBox可以使用的所有格式,尤其是颜色.

Also HTML may not support all formatting, especially colors, that a RichTextBox can use.


这篇关于如何将带有格式的RichTextBox转换为HTML字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆