我有一个body字段,它可能包含来自富文本编辑器的html文本。我希望能够从其中返回高亮显示的片段,但是去掉了html。words</em> and other text</p>或class="something">some text here with <em>words</em> and other text
其中HTML在应用高亮显示之前,我想删除html。我尝试过不同的突出显示组件,但还没有看到
我想继承html类并重新定义方法_symbol_f(x),它是在html类的osv/fields.py中定义的,这个类的定义如下:_type = 'text'class html(text):_symbol_c = '%s' if x is None or x == False:(x),因此我在文件wiki_html.