PHP: Work with a large string with quotes
问题 Suppose I have a large string of HTML code. It has both double quotes and single quotes. How can I work with such a string? I want to assign it to a php var but there's a quote clash whether I use double quotes or single quotes. Is there any way to assign this string to a var without having to manually add slashes to all the quotes? It could be something like this: <div class="name">Sally O'Connel</div> Only the string is longer so there will be multiple occurances of single quotes and double