我应该用什么引号或函数来包装这个PHP字符串?

I have a CMS which builds content to a static page. You just place some made up "tags" in the HTML source and the CMS converts them with the database value.

$faqContent = "<cms:html_body>";
$faqContent = '<cms:html_body>';

The problem is, some of the fields have apostrophes (for grammar), some of the fields have double quotes (as some include hyper links).

So if I wrap $faqContent in single or double quotes, it will break at least once depending on what field it is outputting.

I'm confused now.. what shall I do? I don't want to convert to ASCII codes as the hyperlinks will output as text, not HTML.

For simple bits of code you have to use regular PHP strings.

However, you have to avoid defining large amounts of structured text as PHP strings.
Load them from a file instead or use some sort of a templating system