Merge branch 'fix-not-finised-tag-richtextbox' of https://github.com/Tryibion/FlaxEngine into Tryibion-fix-not-finised-tag-richtextbox
This commit is contained in:
@@ -134,6 +134,10 @@ namespace FlaxEngine.Utilities
|
|||||||
if (isLeadingSlash)
|
if (isLeadingSlash)
|
||||||
Move();
|
Move();
|
||||||
|
|
||||||
|
// Dont process if wrong slash is used.
|
||||||
|
if (c =='\\')
|
||||||
|
return false;
|
||||||
|
|
||||||
// Parse tag
|
// Parse tag
|
||||||
bool result = ParseTag(ref tag, name);
|
bool result = ParseTag(ref tag, name);
|
||||||
|
|
||||||
@@ -204,6 +208,10 @@ namespace FlaxEngine.Utilities
|
|||||||
SkipWhitespace();
|
SkipWhitespace();
|
||||||
while (Peek() != '>')
|
while (Peek() != '>')
|
||||||
{
|
{
|
||||||
|
// Return false if start of new html tag is detected.
|
||||||
|
if (Peek() == '<')
|
||||||
|
return false;
|
||||||
|
|
||||||
if (Peek() == '/')
|
if (Peek() == '/')
|
||||||
{
|
{
|
||||||
// Handle trailing forward slash
|
// Handle trailing forward slash
|
||||||
|
|||||||
Reference in New Issue
Block a user