I thought I already fixed this but just noticed that it's still wrong.
When I submit form amy date is stored in db like this
regular text \"double-quoted text\" \'single-quoted text\'
However when I retreive data from db and put it into form again as
stripslashes($db_data)
it cuts the quoted text off...
regular text 'single-quoted text'
This only happens when I put text into form field. If I just echo it back it prints it correctly.
regular text "double-quoted text" 'single-quoted text'