Esempio n. 1
0
        internal static void DisplayTextHelper(HtmlHelper html, ISequenceWriter <string> output, ModelMetadata metadata)
        {
            string text = metadata.SimpleDisplayText;

            if (metadata.HtmlEncode)
            {
                output.WriteString(text);
            }
            else
            {
                output.WriteRaw(text);
            }
        }
Esempio n. 2
0
 public static void StringTemplate(HtmlHelper html, IXcstPackage package, ISequenceWriter <object> seqOutput) =>
 seqOutput.WriteString(package.Context.SimpleContent.Convert(html.ViewData.TemplateInfo.FormattedModelValue));