public static string NormalizeSongText(string text, SongTextAnalyseProperties props) { text = RunReplacements(text, props); text = text.Replace("[:", "/:").Replace(":]", ":/"); if (props.CutHtml) text = CutHtml(text); if (props.ConvertChords) text = ConvertChords(text); if (props.ConvertLabels) text = ConvertLabels(text); return text; }
public static string RunReplacements(string text, SongTextAnalyseProperties props) { foreach (ReplacementProperties repl in props.Replacements) { text = repl.Run(text); } return text; }