riganti/dotvvm-docs

Exception when use resource and last character is &

Closed this issue · 1 comments

When I want to show any string in page as resource and last character of this string is & I get exception Index was outside the bounds of the array. When I use value instead of resource it is ok. Similarly, if the character & is not at the end but in the middle or at the beginning, everything seems fine.

Steps to reproduce:

View model:
public string Test { get; set; } = "test string &";

dothtml:
<dot:Literal Text="{resource: Test}" />

Sorry, wrong project. Should be in dotvvm main project