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.
有没有办法以编程方式删除所有被放入的microsoft html格式并将其简单地呈现为常规html。
我想删除所有额外的标签,因为我试图将它加载到 tinymce 中,但 tinymce 似乎无法渲染它。
我使用了这些文章中的正则表达式:
就我而言,我想将每个人限制在一个小的标签白名单中。尤其是那些从 Word 粘贴的人。TinyMCE 有一个属性“valid_elements”可以做到这一点。