sanitize contenteditable content for textline
use foundation fixes from github issue tracker. remove uneeded tags from the search