I just upgraded from smart.format 2.4.2 to 2.5.0. I have the following in production since 2018:
attFilePath = "C:/dev/template.html" //HTML TEMPLATE WITH PLACEHOLDERS IN IT LIKE, Welcome {FirstName})
Smart.Default.Parser.UseAlternativeEscapeChar('\\');
var myTemplate = File.ReadAllText(attFilePath);
request.AddParameter(emailMessage.MessageIsBodyHtml ? "html" : "text", Smart.Format(File.ReadAllText(attFilePath), passengerTemplateValues));
The last instruction reads the html as a string and apply smart.format to change the placeholders with the actual data. Everything worked fine until I decide to upgrade to 2.5. The error that I'm getting is "There are 56 issues, Invalid character in the selector". What Actually change that it cannot parse the html with the placeholders anymore? I change to 2.4.2 and everything is working now again.