The content is submitted as a picture, but the front end displays <img src="address"> instead of a picture

This is because the browser is nosy, it thinks what you want is to display the content. Just add the safe filter and let the browser render normally.

<strong class="text-break pr-4">{
    
    {
    
     comment.content|safe }}</strong>

Guess you like

Origin blog.csdn.net/qq_31910669/article/details/114734735