I'd like to change the content of the p element:
<ion-view>
<ion-content>
<div class="list card">
<div class="item item-avatar">
<h4>{{name}}</h4>
</div>
<div class="item item-body">
<p id='output1'>
<h4>welcome to ionic</h4>
x
</p>
</div>
so I'm trying this javascript code:
<script type="text/javascript">
var output1 = document.getElementById('output1');
output1.innerHTML = data[id].when;
</script>
</div>
</ion-content>
</ion-view>
tag
inside a in the middle of a text?](http://stackoverflow.com/questions/4675985/how-to-use-an-h2-tag-h2-inside-a-p-p-in-the-middle-of-a-text) – Malte Hartwig May 15 '17 at 06:55