Skip to content

Commit ab1d4d6

Browse files
Clearer PHPDocs comment for AbstractBlock::escapeJJsQuote and Escaper::escapeJsQuote
1 parent b3bd86b commit ab1d4d6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/internal/Magento/Framework/Escaper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ public function escapeCss($string)
310310
}
311311

312312
/**
313-
* Escape quotes in java script
313+
* Escape single quotes/apostrophes ('), or other specified $quote character
314+
* in javascript (string or array of strings)
314315
*
315316
* @param string|array $data
316317
* @param string $quote

lib/internal/Magento/Framework/View/Element/AbstractBlock.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,10 +985,12 @@ public function escapeQuote($data, $addSlashes = false)
985985
}
986986

987987
/**
988-
* Escape quotes in java scripts
988+
* Escape single quotes/apostrophes ('), or other specified $quote character
989+
* in javascript (string or array of strings)
989990
*
990991
* @param string|array $data
991992
* @param string $quote
993+
*
992994
* @return string|array
993995
* @deprecated 100.2.0
994996
*/

0 commit comments

Comments
 (0)