Please Add Sanitization to Schema Output
-
Looks like the schema markup is not sanitized at all. For example the $review_name variable comes from get_the_title() and it’s possible to technically include HTML in the return value which can break the schema output but also you should sanitize the output for security reasons.
Can you please update the plugin to use wp_strip_all_tags in the schema output to comply with the WordPress guidelines?
Thanks!
ps: This is the only file I looked at since I was trying to fix an issue with a customer site, but if there isn’t sanitization here I’m sure maybe other places as well. It would be ideal if you could sanitize all user input that is displayed on the site ??
- The topic ‘Please Add Sanitization to Schema Output’ is closed to new replies.