This is a migrated thread and some comments may be shown as answers.

Text after "<" not being shown in tooltip

3 Answers 208 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Heythem
Top achievements
Rank 1
Heythem asked on 10 Dec 2018, 02:31 PM
Hi , 
I am facing an issue with the tooltip text not being displayed when the text contains any of these symbols "<" , ">"  , this is also occurs when i update the tiltle in this scenario within this example : https://dojo.telerik.com/eVazIyaf

could you plz give a solution to this issue to escape the fact that the text is being deducted as a HTML syntax or smtgh and display the whole text as simple string

3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 10 Dec 2018, 04:30 PM
Hi,

If you put a valid HTML string in the title attribute, it will be rendered in the tooltip and that behavior is expected - the tooltip puts the title attribute value in an HTML node: https://dojo.telerik.com/@bratanov/EZilOGIC

If providing valid HTML content in the title attribute is not an option, you can use the content function to provide the desired string based on the title attribute: https://docs.telerik.com/kendo-ui/api/javascript/ui/tooltip/configuration/content


Regards,
Marin Bratanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Heythem
Top achievements
Rank 1
answered on 11 Dec 2018, 08:29 AM
actually , my problem is with the fact that the content of tooltip is being displayed as HTML , so when i have some sort of query containing any of the symbols < or > the rest of the text wont be displayed after those symbols 

so is there a way to dispalay the text of my tooltip as normal string not a HTML 
0
Marin Bratanov
Telerik team
answered on 11 Dec 2018, 01:11 PM
Hi Heythem,

Considering by default that the string is used as HTML, you have two options:

 


Regards,
Marin Bratanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ToolTip
Asked by
Heythem
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Heythem
Top achievements
Rank 1
Share this question
or