This solution to concatenate HTML string and variable is not convenient because we need to interrupt the string:
$content = '<meta property="foo" url="' . $url . '" name="' . $name . '">';
whereas this one is not handy because we have to escape "
by \"
:
$content = "<meta property=\"foo\" url=\"$url\" name=\"$name\">";
What other solution (not requiring an extra function) would you use that would improve code readability?
Note: not a duplicate of heredoc related questions because here I'm looking for a one-line solution.