html characters appearing in the schema fields
-
I don’t think there should be html characters showing in the schema description fields, just plain text. I think you may need to create a filter to strip out all html elements (ex. PHP strip_tags() Function) before writing it in the title and description fields.
https://developers.google.com/search/docs/data-types/event
This is what one of my events looks like:
<script type="application/ld+json"> [{"@context":"https://schema.org","@type":"Event","name":"Title","description":"<p>Some Text:\u00a0Some More Text</p>\\n","image":"
Or if you don’t want to do this, is there some filter I can add to my theme’s functions where I can manipulate this text?
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘html characters appearing in the schema fields’ is closed to new replies.