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.
有没有办法从服务器端 (.NET) 或客户端 (javascript) 上从 Word 2007 复制粘贴的文本中删除标签。我只需要文本,没有任何格式。
我建议删除服务器站点上的所有标签,因此没有停用 JavaScript 的人看到它们:
using System.Text.RegularExpressions; string word2007 = "<h3>word2007</h3><p>test</p>"; Regex.Replace(word2007 ,"<[^>]*>",string.Empty)