I have a blog and blog titles are like this;
"Hey There: Part 1"
So, is there any chance to break the line after ":", because I want Part 1 to start a new line. So it should be like this:
You can use
var text = "Hey There : Part 1"; var newText = text.split(":").join('\n'); alert(newText);