Text after "<" not being shown in tooltip

4 posts, 0 answers
  1. Heythem
    Heythem avatar
    8 posts
    Member since:
    Aug 2018

    Posted 10 Dec 2018 Link to this post

    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
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    5704 posts

    Posted 10 Dec 2018 Link to this post

    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.
  3. Heythem
    Heythem avatar
    8 posts
    Member since:
    Aug 2018

    Posted 11 Dec 2018 in reply to Marin Bratanov Link to this post

    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 
  4. Marin Bratanov
    Admin
    Marin Bratanov avatar
    5704 posts

    Posted 11 Dec 2018 Link to this post

    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.
Back to Top