As mentioned on the title here is a div element
<div id="description" class="bold">
This is an example text i wanna keep.
# And this is the text i want to remove.
</div>
I use this jquery code to get the whole content of the div element and store it in a variable:
<script type="text/javascript">
var $itemdesc = $('#description').text();
</script>
but how can next remove the content that start with the # hashtag?