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); } }
public static void StringTemplate(HtmlHelper html, IXcstPackage package, ISequenceWriter <object> seqOutput) => seqOutput.WriteString(package.Context.SimpleContent.Convert(html.ViewData.TemplateInfo.FormattedModelValue));