I'm not experienced with JS, so please excuse the presumably very beginner question.
I have this line:
$el.text(type + "|");
I need to wrap the "|" in span tags such as '<span class="">|</span>' though when I do so it simply prints out the tags as text as opposed to embedding them as HTML wraps.
How do I go about doing this?
type, where is it defined? What is$el? What's the end-result you're trying to achieve? What you're asking is quite easy, but I'm not convinced that what you're asking is necessarily the best solution to the problem you're trying to solve.