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

How to format my xml display item

2 Answers 101 Views
Show your code
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Clement
Top achievements
Rank 1
Clement asked on 15 Dec 2015, 10:20 AM

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 Answers, 1 is accepted

Sort by
0
Clement
Top achievements
Rank 1
answered on 16 Dec 2015, 01:29 AM
Also I have tried adding  <![CDATA[ ]]> but it still doesn't work
0
Tsvetina
Telerik team
answered on 17 Dec 2015, 12:34 PM
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.

 
Tags
Show your code
Asked by
Clement
Top achievements
Rank 1
Answers by
Clement
Top achievements
Rank 1
Tsvetina
Telerik team
Share this question
or