public function render() {

		$html = '';

		foreach ( $this->all() as $name => $value ) {

			$esc_value = '';

			// If the value is a link `href`, use `esc_url()`.
			if ( $value !== false && 'href' === $name ) {
				$esc_value = esc_url( $value );

			} elseif ( $value !== false ) {
				$esc_value = esc_attr( $value );
			}

			$html .= false !== $value ? sprintf( ' %s="%s"', esc_html( $name ), $esc_value ) : esc_html( " {$name}" );
		}

		return trim( $html );
	}
public function render() {

		$html = '';

		foreach ( $this->all() as $name => $value ) {

			$esc_value = '';

			// If the value is a link `href`, use `esc_url()`.
			if ( $value !== false && 'href' === $name ) {
				$esc_value = esc_url( $value );

			} elseif ( $value !== false ) {
				$esc_value = esc_attr( $value );
			}

			$html .= false !== $value ? sprintf( ' %s="%s"', esc_html( $name ), $esc_value ) : esc_html( " {$name}" );
		}

		return trim( $html );
	}
public function render ( ) { $ html = '' ; foreach ( $ this -> all ( ) as $ name => $ value ) { $ esc_value = '' ; // If the value is a link `href`, use `esc_url()`. if ( $ value !== false && 'href' === $ name ) { $ esc_value = esc_url ( $ value ) ; } elseif ( $ value !== false ) { $ esc_value = esc_attr ( $ value ) ; } $ html .= false !== $ value ? sprintf ( ' %s="%s"' , esc_html ( $ name ) , $ esc_value ) : esc_html ( " {$name}" ) ; } return trim ( $ html ) ; }
Returns an escaped string of attributes for use in HTML.

@since  5.0.0
@access public
@return string
Returns an escaped string of attributes for use in HTML .