I have a sentence
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>
to make it render properly at front-end here is what I have done
from flask import Markup
sentence = Markup(sentence)
But the output is only rendered properly for one markup (not necessarily first one) and others are not rendered.
<p> Reading, watching or <span class="matching">listening</span> to the media isn’t <span class="matching">much</span> help either. </p>
What am I doing it wrong here?