s = '<SPAN style="FONT- SIZE: 9pt">开始1~3<SPAN lang=EN-US>& lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></SPAN>' import re d = re.sub('<[^
https://blog.csdn.net/u010403387/article/details/44197629?utm_source=blogxgwz8 如以下代码所示,id为tidy的<a>标签中既存在<span>标签,又存在“This is some text”的文本.那么问题来了,怎么用jquery只取“This is some text”的文本,而不取<span>里的内容? <a id="tidy"> <span id=