我如何消除使用操作文本(trix编辑器)编写的与视图页面中的内容一起生成的html标签?

问题描述 投票:0回答:1

我在Rails应用程序中安装了Action文本(Trix编辑器)。

编写内容后,将与html标记一起生成内容。例如

 "div class="trix-content"> div> This is the content part. br>br> /div>
html ruby-on-rails ruby wysiwyg trix
1个回答
0
投票

有一个内置的功能:

content.to_plain_text
© www.soinside.com 2019 - 2024. All rights reserved.