diff --git a/src/ui/Logic/UiUtil.cs b/src/ui/Logic/UiUtil.cs index c41f18d9a..17793144c 100644 --- a/src/ui/Logic/UiUtil.cs +++ b/src/ui/Logic/UiUtil.cs @@ -355,7 +355,7 @@ namespace Nikse.SubtitleEdit.Logic return; } - int length = HtmlUtil.RemoveHtmlTags(textBox.Text, true).Length; + var length = textBox.Text.CountCharacters(false); if (e.Modifiers == Keys.None && e.KeyCode != Keys.Enter && length > Configuration.Settings.General.SubtitleLineMaximumLength) { string newText;