html code meta tag description,
it is generated dynamically and we have quotes in the description part and search engines didn't read everything.
it shows until the quotes begins in the search results
how to deal with it ?
thanks
Using " is the way to do it.
If you need to use the double quote inside the string, you can use the backslash character. Notice how the backslash in the second line is used to escape the double quote characters. And the single quote can be used without a backslash.
You need to escape the quotes using HTML character references:
<meta name="description" content=""quoted content"">
The description here is "quoted content"
.
In PHP use strip_tages
+ str_replace('"',""")
to archiv
<meta name="description" content=""quoted content"">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With