resolve issue when add to cart

This commit is contained in:
shreesh arora
2021-05-19 11:51:51 +05:30
parent ca8829cb58
commit e0f4dc1164
2 changed files with 7 additions and 2 deletions

View File

@@ -926,6 +926,11 @@ class ToolsCore
return html_entity_decode((string)$string, ENT_QUOTES, 'utf-8');
}
public static function removeHtmlComments($html)
{
return preg_replace('/<!--(.|\s)*?-->/', '', $html);
}
public static function safePostVars()
{
if (!isset($_POST) || !is_array($_POST)) {