Escape xblock model field in string editor

Also add standalone spec

STUD-1984
Merge pull request #4468 from edx/dan-f/support-quotes-in-string-field-editor

Support single and double quotes in xblock string field editor