如何显示消息包含以下字符串 [英] how to display the message contain following string
本文介绍了如何显示消息包含以下字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好先生
如何显示消息包含以下文本
hello sir
how to display the message contain the following text
<ul><li><img src="file" alt="dsd"/></li></ul>
推荐答案
如果是您想显示<和>符号,则需要对它们进行HTML编码:一个&"字符,然后是"lt"或"gt",后跟一个分号``;''
If you want to display the < and > symbols, then you need to HTML encode them: a ''&'' character, then "lt" or "gt", followed by a semicolon '';''
< <
> >
尝试
string s = myManager.GetString(str);
MessageBox.Show(@"•<img src=""file"" alt=""dsd""/>");
这篇关于如何显示消息包含以下字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文