mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
dont treat comments as elements
This commit is contained in:
parent
7c8c8c645b
commit
e8d1fbac94
@ -224,7 +224,8 @@ namespace Bloxstrap.UI.Elements.Editor
|
|||||||
int endIdx = Math.Min(endIdx1, endIdx2);
|
int endIdx = Math.Min(endIdx1, endIdx2);
|
||||||
if (endIdx2 > 0 && endIdx2 < int.MaxValue && endIdx > startIdx)
|
if (endIdx2 > 0 && endIdx2 < int.MaxValue && endIdx > startIdx)
|
||||||
{
|
{
|
||||||
return xml.Substring(startIdx + 1, endIdx - startIdx - 1);
|
string element = xml.Substring(startIdx + 1, endIdx - startIdx - 1);
|
||||||
|
return element == "!--" ? null : element; // dont treat comments as elements
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user