I want to add char at beginning of each line in html element like :
<div id="container">
<p>first part here !</p>
but they is text here too
<span>and bla bla bla</span>
foo
<p>bar</p>
baz
</div>
expected
<div id="container">
<p>#first part here !</p>
#but they is text here too
<span>#and bla bla bla</span>
#foo
<p>#bar</p>
#baz
</div>
render : https://jsfiddle.net/wna21a1q/
how can I do that whith JS (or jQuery)?
Like :
$('#container').addAtEachLine('#')