Please use esc_attr() and esc_textarea()
-
Hello.
Thank you for a cool and simple plugin for meta description. Please use esc_attr() when you are printing content inside any HTML attribute (otherwise a double quote in the content will close the attribute) and use esc_textarea() when printing content inside a textarea HTML tag. There is also esc_html() for content inside other tags different than textarea, but I didn’t notice such a place in your plugin.
Regards.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Please use esc_attr() and esc_textarea()’ is closed to new replies.