Merge pull request #969 from ivandrofly/flashxml

Remove SSA tags
This commit is contained in:
Nikolaj Olsson 2015-07-01 19:29:23 +02:00
commit f747ac5f38

View File

@ -75,7 +75,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
foreach (Paragraph p in subtitle.Paragraphs)
{
XmlNode paragraph = xml.CreateElement("p");
string text = HtmlUtil.RemoveHtmlTags(p.Text);
string text = HtmlUtil.RemoveHtmlTags(p.Text, true);
paragraph.InnerText = text;
paragraph.InnerXml = "<![CDATA[<sub>" + paragraph.InnerXml.Replace(Environment.NewLine, "<br />") + "</sub>]]>";