I would like to convert
from this
<b><i><u>Charming boutique selling trendy casual &amp; dressy apparel for women, some plus sized items, swimwear, shoes &amp; jewelry.</u></i></b>
转化为这样
Charming boutique selling trendy casual dressy apparel for women, some plus sized items, swimwear, shoes jewelry.
我很困惑如何移除不仅是特殊字符,还包括在特殊字符之间的某些字母。 有人可以提供一种方法吗?
<b><i><u>Charming boutique selling trendy casual & dressy apparel for women, some plus sized items, swimwear, shoes & jewelry.</u></i></b>
。您的解决方案删除了所有标记,但$amp;
未被删除。我尝试使用replace
函数,但它也不起作用。 - Jay P.soup.text.replace('&', '')
来替换掉我代码中的 '&'。 - Andrej Kesely