I guess what I need is regular expression.
lets say I have a var containing the following text:
var texty_texy = "Title:<br />Hey there,<br />I'm a simple text.";
How do I determine if there is a "Title:<br />" in my var (ofcourse "Title" could be changed to "Tuna:<br />" or anything)
and how do I replace it with:
<div class='title'>Title:</div>Hey there,<br />I'm a simple text.