我有一句话
sentence = <p> Reading, watching or <span class="matching">listening</span> to the media isn’t <span class="matching">matching</span><span class="matching">much</span> help either. </p>
让它在前端正确渲染是我所做的
from flask import Markup
sentence = Markup(sentence)
但是输出仅针对一个标记(不一定是第一个)正确呈现,而其他标记则不呈现。
<p> Reading, watching or <span class="matching">listening</span> to the media isn’t <span class="matching">much</span> help either. </p>
我在这里做错了什么?