HTMLToQPDF icon indicating copy to clipboard operation
HTMLToQPDF copied to clipboard

How to apply html formatted string?

Open raysefo opened this issue 1 year ago • 2 comments

Hi, I installed QuestPDF and HTML Agility Pack. How can I apply Notes? It says can not resolve SetHtml.

string Notes = "<b>Terms and conditions apply.</b>"

container.Row(row =>
{
    row.RelativeItem(350).Background(Colors.Grey.Lighten3).Padding(5).Column(column =>
    {
        column.Spacing(2);
        column.Item().Text("Notlar / Notes:").Bold();
        column.Item().SetHtml(Notes);
    });

 });

raysefo avatar Sep 13 '24 05:09 raysefo

Works this way,

column.Item().HTML(handler =>
{
    handler.SetHtml(Notes);
});

raysefo avatar Sep 13 '24 15:09 raysefo