Use .text instead of .html in one portion of SegmentEditor JS.