Issues displaying HTML in HTML box

1 Answer 96 Views
HTMLTextBox
Tommy
Top achievements
Rank 1
Iron
Iron
Iron
Tommy asked on 09 Sep 2021, 03:13 AM

I have a requirement to write a report that serves up data from our "Email Queue" table. A challenge will be that emails can have copy/pasted content from word and outlook so has random HTML tags that I know are not supported by Telerik Report. In some cases if uses paste images then these are stored as raw Base64 values in the HTML.

What options do I have available???

Even this simple example is failing...

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 13 Sep 2021, 10:31 AM

Hello Tommy,

You can test the HtmlEncode function. Another option is to replace the chars. For the full list with special entities like "&" and TAB and their expression, refer to this w3.org page.

Note that TABLE and IMG tags are not supported in the HtmlTextBox. Instead, you must use the native Reporting Table/List/Crrostab and PictureBox items. A custom approach like rendering HTML as an Image with a third-party tool and using the image via PictureBox item is also supported.

Regards,
Neli
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Tags
HTMLTextBox
Asked by
Tommy
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Neli
Telerik team
Share this question
or