Using PHP, I need to assign to a variable a long string that contains a number of single and double quotes which cause confusion when I surround the string with single or double quotes to contain it. I'm sure there must be a function to do this. However, search as I may, I cannot find one, nor contributors' solutions. These will be stored as files, not as DB records.
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
font-family:"Times New Roman","serif";mso-fareast-font-family:"Times New Roman";
mso-font-kerning:18.0pt;mso-fareast-language:EN-CA'>Welcome Alpha Team!<o:p></o:p></span></b></p>
Clearly, the example can't work with Times New Roman contained by single or double quotes.
Is there a standard method to deal with this?