public class Order
{
public string SalesContract { get; set; }
}
Order order = new Order()
{
SalesContract = "<b>This is a sales contract. Please read carefully.</b><br>" +
"• Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br>" +
"• Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.<br>" +
"• Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.<br>" +
"• Nisi ut aliquip ex ea commodo consequat."
};
By the way, is it possible to edit HTML to display bold with b tag? I mean when I make bold some part of the text above it seems that it adds styles.
<b>This is a sales contract. Please read carefully.</b><br>• Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br><span style="font-weight: bold;">• Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</span><br>• Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.<br>• Nisi ut aliquip ex ea commodo consequat.
"Just display it". How? I can get the text to display properly using the HtmlEditor control. However, the "cog wheel" displays and I don't need it. The background color of the editor control doesn't seem to be configurable. I've tried setting a style "background-color: transparent" with no luck.
I'd much rather just use a RadzenText control to display the text, but this shows the HTML tags as text (and attempting to convert the text using MarkupString throws errors).