HTML in form header titles

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
Gabbitas
Posts: 334
Joined: Sun Jan 03, 2010 3:36 am

HTML in form header titles

Post by Gabbitas »

Hi All,

I used to be able to define a form title that included html (Styling) and then when the form was displayed in the operation mode AwareIM would parse the html and my title would be displayed with the html applied to it accordingly. Now this no longer works and the raw html is displayed to the user in the form title (it is not parsed).

I believe this is because of a change in kendo UI as described below:

“ As of the 2017 R1 SP1 release and to prevent script injection, the Kendo UI Window no longer allows the adding of HTML through the title property of the widget. However, you can still work around the issue by programmatically inserting HTML in the title of the widget.”

https://docs.telerik.com/kendo-ui/knowl ... ndow-title

Does anyone know how I might go about writing a script that would allow the title html to be parsed and the form title display correctly? Kendo talk about a config property ‘title.encoded’ but I have tried this in an initialisation script on the form to no avail. The script I tried was

config.title.encoded = false;

More on this property can be found here: https://docs.telerik.com/kendo-ui/api/j ... le.encoded

I’ve read that this property was only made available in kendoUI in versions 2018+. Anyone know what, or how to find out what, version of kendo AwareIM is currently using?

Many thanks in advance....
hpl123
Posts: 2594
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: HTML in form header titles

Post by hpl123 »

Sounds like a serious limitation :(
Henrik (V8 Developer Ed. - Windows)
Post Reply