mirror of
https://github.com/lucaspalomodevelop/txtmark.git
synced 2026-03-12 23:37:22 +00:00
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:
parent
dae4dd9666
commit
184a26229a
@ -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
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user