title: Javascript: add <br> if find special character
body: <p>My javascript code return this string: <code>Al Kawkab - Al-Ain</code>.
  I would like, the javascript code add to enter after the dash so that the text starts with a new line.</p>
  
  <p>I would like to achieve such a result:</p>
  
  <p><code>Al Kawkab -
  Al-Ain</code></p>
  
  <pre><code>$($('.title a').children().prevObject).each(function (index) {
                  console.log(index + ": " + $( this ).text() );
  
                  if ($( this ).text().length &gt; 34) {
  
                            // add &lt;br&gt; after dash
  
                  }
  
              });
  </code></pre>