</div>
{% if settings.USE_CUSTOM_HEADER|or_preview:request %}
<div id="custom_header">
- {{ settings.CUSTOM_HEADER|or_preview:request|markdown:"settingsparser" }}
+ {{ settings.CUSTOM_HEADER|or_preview:request|safe }}
</div>
{% endif %}
{% include "header.html" %}
{% if settings.USE_CUSTOM_FOOTER|or_preview:request %}
{% ifequal settings.CUSTOM_FOOTER_MODE|or_preview:request "above" %}
<div id="custom_footer">
- {{ settings.CUSTOM_FOOTER|or_preview:request|markdown:"settingsparser" }}
+ {{ settings.CUSTOM_FOOTER|or_preview:request|safe }}
</div>
{% endifequal %}
<div id="ground">
{% ifequal settings.CUSTOM_FOOTER_MODE|or_preview:request "replace" %}
- {{ settings.CUSTOM_FOOTER|or_preview:request|markdown:"settingsparser" }}
+ {{ settings.CUSTOM_FOOTER|or_preview:request|safe }}
{% else %}
{% include "footer.html" %}
{% endifequal %}
</div>
{% ifequal settings.CUSTOM_FOOTER_MODE|or_preview:request "below" %}
<div id="custom_footer">
- {{ settings.CUSTOM_FOOTER|or_preview:request|markdown:"settingsparser" }}
+ {{ settings.CUSTOM_FOOTER|or_preview:request|safe }}
</div>
{% endifequal %}
{% else %}
{% if settings.USE_ANNOUNCEMENT_BAR|or_preview:request %}
<div id="announcement">
- {{ settings.ANNOUNCEMENT_BAR|or_preview:request|markdown:"settingsparser" }}
+ {{ settings.ANNOUNCEMENT_BAR|or_preview:request|safe }}
</div>
{% endif %}
-<!-- end template header.html -->
\ No newline at end of file
+<!-- end template header.html -->
{% load extra_tags %}
-<div class='post-update-info'>
+<div class='post-update-info post-update-info-user'>
<p style="line-height:12px;">
{{ node_verb }}
<strong>{% diff_date node.added_at %}</strong>
{% get_score_badge node.author %}</p>
</div>
{% if node.last_edited %}
- <div class='post-update-info'>
+ <div class='post-update-info post-update-info-edited'>
<p style="line-height:12px;">
<a href="{{ node.get_revisions_url }}">
{{ node.last_edited.verb }}
{% if show %}
{% if wrap %}<div id="{{ blockid }}" class="boxC">
<div class="body">{% endif %}
- {{ content|markdown }}
+ {{ content }}
{% if wrap %}</div>
</div>{% endif %}
-{% endif %}
\ No newline at end of file
+{% endif %}
"""Utilities for working with HTML."""
-import html5lib
-from html5lib import sanitizer, serializer, tokenizer, treebuilders, treewalkers
+#import html5lib
+from html5lib import sanitizer, serializer, tokenizer, treebuilders, treewalkers, HTMLParser
from django.utils.html import strip_tags
from forum.utils.html2text import HTML2Text
from django.template import mark_safe
def sanitize_html(html):
"""Sanitizes an HTML fragment."""
- p = html5lib.HTMLParser(tokenizer=HTMLSanitizer,
+ p = HTMLParser(tokenizer=HTMLSanitizer,
tree=treebuilders.getTreeBuilder("dom"))
dom_tree = p.parseFragment(html)
walker = treewalkers.getTreeWalker("dom")
return render_to_response('ask.html', {
'form' : form,
+ 'tab' : 'ask'
}, context_instance=RequestContext(request))
def edit_question(request, id):