How to do that:
document.getElementById(\'target\').innertHTML = \"<script> alert(1); <script>\";
document.getElementById('target').innertHTML = '';