【发布时间】:2013-04-22 13:41:51
【问题描述】:
这是我的html代码:
<p><span style="background:lime;Color:Red;">Contrary to popular belief, <b><u>Lorem Ipsum is not simply</u></b> random text. It has roots in a piece of classical Latin literature from <span style="background:blue;">45 BC, making it over 2000 years</span> old. Richard McClintock, </span><b>
从上面的代码中,我需要使用 C# 从所有跨度中删除背景属性和值。样式标签中的其他值应保留。例如:
<span style="background:lime;Color:Red;">Contrary to popular belief,.....</span>
应该看起来
<span style="Color:Red;">Contrary to popular belief,.....</span>
请帮助...!
【问题讨论】:
-
查看 Nuget 的 HTML 敏捷包。
-
你可以在jQuery中轻松做到这一点,为什么它需要是C#?
-
你如何访问这个 HTML?
-
我使用富文本控件获取此 html。看到这个线程..infragistics.com/community/forums/p/79418/400897.aspx#400897