Mercurial > public > sg101
comparison gpp/templates/comments/markdown_preview.html @ 136:d203a4a986d2
Markitup preview function wasn't working correctly due to the user data being escaped before going into the markdown and smiley filters.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 27 Nov 2009 03:50:34 +0000 |
parents | 06503edcc56b |
children |
comparison
equal
deleted
inserted
replaced
135:13330e1836f3 | 136:d203a4a986d2 |
---|---|
1 {% load markup %} | |
2 {% load smiley_tags %} | |
3 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
4 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
5 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
6 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | 4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
7 <head> | 5 <head> |
8 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | 6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
9 <title>Markdown Preview</title> | 7 <title>Markdown Preview</title> |
10 <link rel="stylesheet" type="text/css" href="~/templates/preview.css" /> | 8 <link rel="stylesheet" type="text/css" href="~/templates/preview.css" /> |
11 </head> | 9 </head> |
12 {{ data|smiley_markdown|markdown:"safe" }} | 10 {{ data|safe }} |
13 </body> | 11 </body> |
14 </html> | 12 </html> |