Use T4 to generate Write methods for ISpanFormattable types, which include specific methods designed to be called from the template and allow controlling the format, culture, and whether the value is HTML encoded (true by default)
All Write() methods HTML encode now (except for Write(bool))
Ensure writing attributes doesn't box bools and ISpanFormattable types
RazorSlice
protectedWrite
methods forISpanFormattable
types, which include specific methods designed to be called from the template and allow controlling the format, culture, and whether the value is HTML encoded (true by default)Write()
methods HTML encode now (except forWrite(bool)
)ISpanFormattable
types