Use replaceAll with functor to escape json
More json escaping
Use preformated for line widgets