如何将格式文本与richtexbox中的图像转换为HTML标记? [英] How do I convert format text with images from richtexbox to HTML tags?
本文介绍了如何将格式文本与richtexbox中的图像转换为HTML标记?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想将我的richtexbox中的所有内容转换为html标记,以便作为电子邮件发送。谢谢
我尝试过:
我正在使用帖子由 Oscar Londono 完成 [ ^ ]这对我有用但我无法检测文本中的图像来转换它们。
I want to convert all in my richtexbox into html tags for sending as email. Thanks
What I have tried:
I'm using the post done by Oscar Londono[^] and this work for me but I can't detect the images in text to convert them.
推荐答案
你可以使用正则表达式检测图像。图像以< img
标记开头。如果你能检测到,那么你可以做任何你想做的事。
You can use a Regular Expression to detect an image. Image starts with a <img
tag. If you can detect that, then you can do whatever you want to do.
这篇关于如何将格式文本与richtexbox中的图像转换为HTML标记?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文