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.
当我尝试使用 jQuery text() 方法提取以下元素的内部文本时,
<a href="http://www.abcxyz.com">This is the Link. Learn more.</a>
我得到以下字符串作为输出。
输出字符串:This is the Link. Learn more.
This is the Link. Learn more.
我不想在输出字符串中出现“”。我该如何更换它?
try this,
string s = "This is the Link. Learn more."; string newString = s.Replace("Â", "");