﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
11170	Safe filter closes an open html tag in some cases	ckopec	nobody	"I believe this is a bug, if it's expected or just my error I'm sorry for the inconvenience. 

It seems that the safe filter in some cases closes an open tag before inserting the text being filtered.  

What I mean is as follows:

Let's say comment.html contains the following: 
{{{
<p>This is some text <strong>Bold text</strong>!</p>
<p>More filler</p>
}}}


In my template I have:
{{{
<p class=""comment-text"">
    {{ comment.html|safe }}
</p>
}}}

When the page is generated I get this for html.
{{{
<p class=""comment-text""></p>
<p>This is some text <strong>Bold text</strong>!</p>
<p>More filler</p>
}}}

See how the first p tag is closed prior to the comment.html contents.  

Now if I change the wrapping p tag to a span I get a different outcome. 
{{{
<span class=""comment-text"">
    <p>This is some text <strong>Bold text</strong>!</p>
    <p>More filler</p>
</span>
}}}

In this case the span tag wraps the comment.html contents.  "		closed	Uncategorized			worksforme			Unreviewed	0	0	0	0	0	0
