Reformatting pasted text
December 31, 2006 7:05 AM
Subscribe
Coding question: What is the best/easiest way to preserve typographical formatting (like nbsp's, line breaks) of pasted text that will be stored in a database and later displayed in boxes of arbitrary size?
The problem is not exactly that I can't do this, just that the current method is incredibly anal and cludgy--I am overthinking this. The end result should be having text displayed so that scaling the dimensions of the box (w/ javascript) keeps all the paragraphs and doesn't have the text overflow, and doesn't require computing the pixels of all the letters on a line..
posted by shownomercy to computers & internet (6 comments total)
Fixed or variable width font?
Is this code? Prose? Something else?
posted by Khalad at 8:31 AM on December 31, 2006