show web content in my mobile application that content is saved to the database.

Hi Daianne

Could you use an HTML element to show this text?

The HTML element, If I am not mistaken, will take a text and interpret as HTML.

Cheers.

EDIT.

Nope. It is just a single TAG.

Eduardo Jauch wrote:

Hi Daianne

Could you use an HTML element to show this text?


The HTML element, If I am not mistaken, will take a text and interpret as HTML.


Cheers.

EDIT.

Nope. It is just a single TAG.


the HTML element would be.


Hi, 

You can use JavaScript to set the innerHTML of an HTML element you named, like a div.

Example:

document.getElementById('Div').innerHTML = "<p>First Paragraph</p><p>Second paragraph</p>"

But the text could come from the database.

Cheers.

Solution

Hi Daianne,


In support to Eduardo's reply I have created a demo app (PFA) hope it make the things more clear.

Output: Check this out...


Kind Regards,

Benjith Sam

Solution