var whatever = 'Some [b]random[/b] text in a [b]sentence.[/b]';
How can I replace every instance of [b] with <b> and every instance of [/b] with </b> in jQuery?
I was attempting to do it with regex but I couldn’t get it to function properly.
With regex, it’d be:
That’d seem to be the easiest solution