HTML special chars in combobox as textField

1 Answer 408 Views
ComboBox
Marcin
Top achievements
Rank 1
Marcin asked on 12 May 2021, 08:38 AM

Hi

I have problem with HTML codes in combobox. Trying display = and select =  or = but in field is string, not symbol. In list this not working too, I used kendoComboBoxItemTemplate and put HTML code in span but I can't display this sign. My data are like this:


data = {
name: 'name',
id: 'number',
display: '$#61;'
}

1 Answer, 1 is accepted

Sort by
0
Svet
Telerik team
answered on 17 May 2021, 05:59 AM

Hi Marcin,

You can use the innerHTML property in order to render special characters in Angular:

https://stackoverflow.com/questions/45865954/display-html-special-characters-in-angular-2-bindings

https://www.digitalocean.com/community/tutorials/angular-innerhtml-binding-angular

Here is an updated example:

https://stackblitz.com/edit/angular-gz4wet?file=app/app.component.ts

I hope this helps.

Regards,
Svetlin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
ComboBox
Asked by
Marcin
Top achievements
Rank 1
Answers by
Svet
Telerik team
Share this question
or