Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
90
Sanitize HTML value in Igx-column
posted

Hi,

How can I sanitize HTML strings value in Igx-column?

For example:

From:

To:


Thank you!

Regards,
Afif

Parents
  • 1560
    Verified Answer
    Offline posted

    Hello,


    I have been looking into your question and what I could suggest is using the provided igxCell directive and re-template in order to display the cells' values per your requirement.


    As it is suggested in this topic in the Angular documentation in order to display an HTML in the required format you could set the parameter which holds the HTML string to the innerHTML attribute of an element. I have prepared a small sample that demonstrates this approach and it could be found here.


    However, please keep in mind that sanitizing HTML value should be handled entirely on the application level and since it is not related to our components it could be considered beyond the scope of Infragistics support.


    Let me know if I may be of any further assistance.


    Sincerely,
    Teodosia Hristodorova
    Software Developer

Reply Children