I am using an editor which doesn't allow links or code to be added. For example, I can add the following:
[url=http://example.com]This is a test[/url]
This will then show on the website exactly as it is shown above.
How can I then use Javascript to turn the above into a link, but only show This is a test but with a link on it?