前添加锚标记我有一个字符串:图片标签
string explanation= "Which of the following are associated with ependymitis " +
"<img id='id=47148;displayStyle=Simple;width=100;height=62;loop=False;' " +
"isMaintainAspectRatio=True "+
"src='../Admin/GetImage.ashx?id=240648' alt='Image4' width='100' height='62' " +
"href='../Admin/GetImage.ashx?id=240648'/><br />";
我想<img>
标签之前添加<a></a>
标签。我们如何解释<img>
标签?
[img id ='id = 47148; displayStyle = Simple; width = 100; height = 62; loop = False; isMaintainAspectRatio = True]这个乱码是什么?这甚至不接近适当的图像标签。 – Graham
你的问题不清楚。你是否试图将这个img“规范”变成可点击的图像链接?你显然也在对这个字符串做额外的处理,因为它看起来不像我见过的没有img标签。 –
你有没有检出HtmlAgilityPack - http://htmlagilitypack.codeplex.com/? –