Remove tags from "next subtitle label" in waveform - thx OmrSi :)

This commit is contained in:
Nikolaj Olsson 2018-08-13 17:12:08 +02:00
parent 9a7b8c92d1
commit b6e902eb04

View File

@ -13069,7 +13069,7 @@ namespace Nikse.SubtitleEdit.Forms
if (next != null && !string.IsNullOrEmpty(next.Text))
{
labelNextWord.Top = audioVisualizer.Top;
labelNextWord.Text = string.Format(_language.NextX, next.Text.Replace(Environment.NewLine, " "));
labelNextWord.Text = string.Format(_language.NextX, HtmlUtil.RemoveHtmlTags(next.Text, true).Replace(Environment.NewLine, " "));
labelNextWord.Left = audioVisualizer.Width / 2 - labelNextWord.Width / 2 + audioVisualizer.Left;
labelNextWord.Visible = true;
_labelNextTicks = DateTime.UtcNow.Ticks;