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.
我正在使用 tinyMCE 文本编辑器,当我保存任何记录时,它会在记录列表中显示该记录的所有 html 标签,作为临时解决方案,我使用了 post_save 和 rceiver 对象来删除标签。有没有更简单的解决方案?
我相信不会。所有所见即所得的编辑器都接受来自 html 的数据。您需要自己删除标签。
如果你愿意,你可以使用 HTMLAgility Pack(如果你使用 .net)让你的生活变得更轻松。