I am using Angular2 and ngx-clipboard and am trying to copy the html content in a div:
<div>
<div>
<div #instr class="instructions" innerHTML="{{ 'somtext' | translate }}"></div>
</div>
<div class="xxx">
<clipboard [value]="instructions.innerHTML"></clipboard>
</div>
</div>
where sometext is an html string example,
"somtext"="<ol><li>abc...<b>qqq</b></li><li>def</li></ol>
The problem is if I use instructions.innerHTML with clipboard and then tries to paste it somehwere, it prints all the html tags etc. If I use innerText, the tags are removed which is good but then it also loses the numbering I get from using order list tags. I want to retain the numbering when I paste the content copied using ngx-clipboard on a notepad or something
How can I achieve this?