Lazy_String::escaped()

Returns the HTML ready, escaped version of the string.


Return

(string) The escaped version of the string.


Top ↑

Source

File: src/Tribe/Utils/Lazy_String.php

	public function escaped() {
		if ( null !== $this->escaped ) {
			return $this->escaped;
		}

		$this->escaped = empty( $this->escape_callback )
			? $this->__toString()
			: call_user_func( $this->escape_callback, $this->__toString() );

		return $this->escaped;
	}

Top ↑

Changelog

Changelog
Version Description
4.9.16 Introduced.