CMS Encoding Apostrophe

I have a field in a CMS collection that is custom code for each collection item, stored in a plain text field. However, I can’t use " or ’ within the code as it gets encoded to ' on the live site.

Is this on purpose? Is there anyway I can get around it?

Here’s a snippet of code I’m trying to use in the collection field.

@font-face { font-family: Biotif; font-weight: 400; src: url(//s1.thcdn.com/fe/fonts/test/Biotif/biotif.woff) format('woff'), } .main-body { font-family: 'Biotif', serif }

Thanks in advance!

What method are you using to convert the plain text into usable code?