refactor: includes instead of indexOf (#5117)
This commit is contained in:
@@ -1044,7 +1044,7 @@ function parseTextData(
|
||||
if (
|
||||
mode === TextModes.RAWTEXT ||
|
||||
mode === TextModes.CDATA ||
|
||||
rawText.indexOf('&') === -1
|
||||
!rawText.includes('&')
|
||||
) {
|
||||
return rawText
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user