html code in datatbale cell

edited February 12 in Technical questions

Hi all, how can I visualize a string like the following one in a datatable cell?

"<code xmlns=""http://show.sample.it/Services/there/ciao/MessageTypes"">1234</Code><time xmlns=""http://show.sample.it/Services/abc/xyz/MessageTypes"">2018-01-10T00:30:12</date><datum xmlns=""http://show.sample.it/Services/abc/hgy/MessageTypes"">2018-01-10T00:37:08</end>"
Tagged:

Comments

  • the original message was truncated because of some tags in it.
    So how can I use strings with tags in it (like <, >, etc...)?

  • Hello!
    In such case you can add an exclamation mark ! after the opening #:

    {
      template: "My #data#" // will output data as HTML content 
    },
    {
      template: "My #!data#" // will output data as Text content 
    }
    

    Information about the ways of presenting data inside the component is here

    Here is an example: https://webix.com/snippet/300f6440

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!