Closed nikita-starostin closed 3 years ago
Hi Just had a look, but I cannot reproduce your result for v2.5.0:
SmartFormat, Version=2.5.0.0, Culture=neutral, PublicKeyToken=568866805651201f
My result:
.p1 { asd }
<P class="p1 ft3">First Name: <SPAN class="ft0">{info.firstName}</SPAN></P>
SmartFormat, Version=2.6.2.0, Culture=neutral, PublicKeyToken=568866805651201f
My result:
.p1 { asd }
<P class="p1 ft3">First Name: <SPAN class="ft0">{info.firstName}</SPAN></P>
A complete sample, which could be run in a unit test would be helpful.
Parsing HTML works fine, except - like in your case - when it includes CSS styles and JavaScript. Both have curly braces in their syntax, which Smart.Format interprets as { placeholders }
.
Verified as a bug, will be closed by PR #149 - see PR comments for details
Hi,
in the past I had to parse an html string where CSS-styles had been inlined, e.g.
In 2.5.0 I have used next snippet to support
{
for CSS-styles.and tokens at same time:The behavior for
PrepareHtml
is different for 2.6.2 and 2.5.0not sure is it a bug, or not, for desired behavior I have rollbacked to 2.5.0