Getting Django comments to be able to use bold and italic style
So I'm trying to get rich text to work for the cheeserater program where I added a commenting system using the tinyMCE editor in the textarea. This is what it looks like:
<table><td align=left>
{% get_comment_list for package as comment_list %}
{% for comment in comment_list %}
{{ comment.comment|safe }}<br>
{% endfor %}
</table>
The underline and text size works, but the bold and italic sty开发者_如何学Cles don't. For example, I underlined and bolded 'omg', bolded 'wtf', bolded and italicized 'lol'.
<p><strong><span style="text-decoration: underline;">omg</span></strong><strong> wtf <em>lol</em></strong></p>
It displays as the 'omg' underlined, but 'wtf' and 'lol' has their format unchanged.
Those tags work fine here. Check that you don't have a stylesheet causing those tags to use an unadorned style.
精彩评论