Encode Raw HTML content in Google Charts

47 views
Skip to first unread message

Francisco Ribeiro

unread,
Jul 15, 2021, 4:13:00 AM7/15/21
to Google Visualization API
Hi.

I am trying to build a Line Chart in .NET. My content comes from a Stringbuilder in my Model with some HTML tags in it. I am showing them in my View (using Html.Raw) but the tags keep getting decoded. How do I allow, for example, the <br'> tags to actually break the line? In my chart options I am using allowHtml: true.
Any ideas?
Reply all
Reply to author
Forward
0 new messages