Fix for issue #24, safeMode and line breaks

There was a major flaw in the safeMode emitter, that somehow forgot
to add the tag if it is a safe HTML element. I really have no idea
how this one could be undetected for so long.
This commit is contained in:
René Jeschke 2015-03-18 11:24:58 +01:00
parent dae4dd9666
commit 184a26229a

View File

@ -682,12 +682,16 @@ class Utils
if (HTML.isUnsafeHtmlElement(tag))
{
out.append("<");
if (isCloseTag)
{
out.append('/');
}
out.append(temp);
}
else
{
out.append("<");
}
if (isCloseTag)
{
out.append('/');
}
out.append(temp);
}
else
{