Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有很多 html 文件,我想将 rel="nofollow" 添加到特定 div 中的所有 a href 标记中。
我认为 c# 代码可以做到这一点。但是我如何只关联部分代码..?
有什么建议吗?我也不知道
这是我的想法:
最后这是你可以做的:
string s1 = "<a href=\"mylink\"> this is link </a>"; string s2 = s1.Insert(s1.IndexOf(">"), " rel=\"nofollow\"");
Errors running test:units! #<RuntimeError: Command failed with status (1): [ruby -I"lib:test" -I"/Users/jake/.rvm/gems/ruby-1.9.3-p286/gems/