public function InstapageCmsPluginDrupal8Connector::escapeHTML in Instapage plugin 8.3
Same name and namespace in other branches
- 7.3 core/connectors/InstapageCmsPluginDrupal8Connector.php \InstapageCmsPluginDrupal8Connector::escapeHTML()
Properly escapes the HTML.
Parameters
string $html HTML to escape.:
Return value
string Escaped HTML.
File
- core/
connectors/ InstapageCmsPluginDrupal8Connector.php, line 707
Class
- InstapageCmsPluginDrupal8Connector
- Class that utilizes native Drupal 8 functions to perform actions like remote requests and DB operations.
Code
public function escapeHTML($html) {
return \Drupal\Component\Utility\Html::escape($html);
}