Escaping quotes from shortcode attributes

It seems you are working on the wrong end.

Try sanitizing the user input, for instance by means of sanitize_text_field, not the shortcode output.

Leave a Comment