From 16c8b4d59cb2ec9d3f5727111064f36a8ea98fa6 Mon Sep 17 00:00:00 2001 From: Ivandro Ismael Date: Wed, 7 Sep 2016 13:19:59 +0100 Subject: [PATCH] [HtmlUtil] - Make sure text contains '<'. --- libse/HtmlUtil.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libse/HtmlUtil.cs b/libse/HtmlUtil.cs index 3db09f057..a147acdb8 100644 --- a/libse/HtmlUtil.cs +++ b/libse/HtmlUtil.cs @@ -403,7 +403,7 @@ namespace Nikse.SubtitleEdit.Core public static string FixUpperTags(string text) { - if (string.IsNullOrEmpty(text)) + if (string.IsNullOrEmpty(text) || !text.Contains('<')) return text; var idx = text.IndexOfAny(UppercaseTags, StringComparison.Ordinal); while (idx >= 0)