<textarea id=out rows=1 style="width:180px;overflow-x:auto" onfocus="this.select()" readonly></textarea> <script type="text/javascript"> var str = '<a id="senatd">0</a> руб'; document.getElementById("out").value=str; </script>