adobe-webplatform/balance-text — pull request #46 by rileyjshaw (2014-11-23 00:00:55+00:00)
Title: Fix #26: allow nested elements

Change the regexp in `isWS()` to only match space characters outside of element tags. The space in `

` is not matched, but the spaces in `

This is inner content

` are matched.

To make this more efficient, potential breakpoint indices could be held in an array outside of isWS.

A working demo can be seen [here](http://codepen.io/rileyjshaw/pen/oggBxz).