How to format my xml display item

3 posts, 0 answers
  1. Clement
    Clement avatar
    3 posts
    Member since:
    Dec 2015

    Posted 15 Dec 2015 Link to this post

    I would like to add break points and bold some of my text in mu displayed xml item.

    However, when I tried to format them by adding <br/> or <b>Hi</b> tags.

    Instead of :

    Hi
    I am a boy.

     

    It displayed:

    <b>Hi</b><br/>I am a boy.

    Is there anyway I can format the display of the xml item by directly adding tags in the data?

  2. Clement
    Clement avatar
    3 posts
    Member since:
    Dec 2015

    Posted 15 Dec 2015 in reply to Clement Link to this post

    Also I have tried adding  <![CDATA[ ]]> but it still doesn't work
  3. Tsvetina
    Admin
    Tsvetina avatar
    1876 posts

    Posted 17 Dec 2015 Link to this post

    Hello Clement,

    How are you binding this data to your app? Note that if you are using a data-bind attribute to bind the data in your view, you should use an html and not a text binding:
    <span data-bind="html: value"></span>

    If this doesn't resolve the problem, please share more information about the exact way you display the HTML-containing data in your app.

    Regards,
    Tsvetina
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
Back to Top