The Yii framework possesses a built-in helper class called the Yii\helpers\Html class. The Html class contains various helpful methods for working with HTML strings, such as encoding and decoding strings, generating links and form inputs, and rendering HTML entities.
Html encode method encodes the input string that may contain special HTML characters into their corresponding HTML entities. This helps to prevent cross-site scripting (XSS) attacks and other vulnerabilities in web applications.
This method has the package name yii2\helpers\Html.
PHP yii\helpers Html::Encode - 2 examples found. These are the top rated real world PHP examples of yii\helpers\Html::Encode extracted from open source projects. You can rate examples to help us improve the quality of examples.