def bitstream_to_html(bitstream) bitstream.join.gsub('111', '-').gsub('1', '.').gsub('0',' ').html_safe end