Here I ran into a problem: For example, there is such code:
<meta name="description" content="<?php echo $description_text ?>">
If the $description_text
variable has the symbol "
, then, of course, incorrect output occurs. I see only one solution: before displaying $ description_text, проверять переменную на наличие символа
` проверять переменную на наличие символа
and put a slash ( \
) before it. Is there any other way out?