esc_attr( string $text ): string In this article Table of ContentsParameters Return More Information Source Hooks Related Changelog User Contributed Notes ↑ Back to top Escaping for HTML attributes.