I have a large blocks or text on a message board that will contain strings beginning with #. Can I use jquery to replace these with a link containing the string?
For example, changing:
<div id="mydiv">This is my #block of text with #multiple hash strings</div>
to:
<div id="mydiv">This is my <a href="newpage.asp?block">#block</a> of text with <a href="newpage.asp?multiple">#multiple</a> hash strings</div>
Thanks in advance!
You could use the following code to replace strings: