Django textarea widget <p>
In django admin I am using the textarea widget.
When I save data, it is saved inside a <p></p>开发者_StackOverflow;
tag.
I dont want this - any solutions, I just want to get the data out without being wrapped in a <p>
.
Any suggestions?
I don't know how to save it without html coding, but maybe it is enough to you to display without that
. Just put a |safe in the template after the variable name, example:{{ variable|safe }}
http://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs
精彩评论