# InnerHtml image not showing

**URL:** <https://forum.ionicframework.com/t/innerhtml-image-not-showing/55686>\
**Category:** ionic-v3\
**Created:** [June 24, 2016, 3:59am UTC](https://forum.ionicframework.com/t/innerhtml-image-not-showing/55686 "2016-06-24T03:59:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![junaidi](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/junaidi/32/68093_2.png) [@junaidi](https://forum.ionicframework.com/u/junaidi)\
**Post date:** [June 24, 2016, 3:59am UTC](https://forum.ionicframework.com/t/innerhtml-image-not-showing/55686/1 "2016-06-24T03:59:29Z")

</div>

hello,

I’m using ionic2 beta 9 and Wordpress REST API.

I’m successfully get json object from API.  
I can show image using \<img [src]\>.

However, I cannot display the image from the blog post content using [innerHtml]. As image is exist in blog post content with

```auto
<img src="example.com/img.png">

```

and also for embeded youtube video with

```auto
<iframe>

```

again, both of it is in my blog post content.

this problem only occur in mobile and not in ionic serve.

hope I can solve this ASAP. thanks.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [June 24, 2016, 5:29pm UTC](https://forum.ionicframework.com/t/innerhtml-image-not-showing/55686/2 "2016-06-24T17:29:11Z")

</div>

You really shouldn’t be using innerHtml in your app.

This is a very insecure method of loading content, so angular will sanitize and strip out anything that it thinks is dangerous.

If you need to load data, you can :

- check to see if there is alternative to the content your are getting from the API
- Open the page in the inappbrowser window.

---

<div class="post-metadata">

**Author:** ![chaknop](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@chaknop](https://forum.ionicframework.com/u/chaknop)\
**Post date:** [March 21, 2017, 6:03am UTC](https://forum.ionicframework.com/t/innerhtml-image-not-showing/55686/3 "2017-03-21T06:03:13Z")

</div>

i can’t display ifram in innerHtml i use REST API
