How to change text inside a div
<p>There are elements in a dynamically generated webpage that look like this:  </p>

<pre class="lang-html prettyprint-override"><code>&lt;div class="Lore Ipsum"&gt;foo bar&lt;/div&gt;  
&lt;div class="Lore Ipsum"&gt;ham spam&lt;/div&gt;  
</code></pre>

<p>I want to see some notes after text like following:  </p>

<pre class="lang-none prettyprint-override"><code>foo bar - Wrong  
ham spam - Right  
</code></pre>

<p>How can I get those elements and add comments?<br>
Thanks in advance.</p>

<p>Note: I am not the author of the page mentioned above, so I cannot edit sources.</p>
