Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
whitespace example
while
(
false !==
$tok
&& !
(
'<' ==
$tok
&&
(
$this
->scanner->
sequenceMatches
(
$sequence
,
$caseSensitive
)
)
)
)
{
if
(
'&' ==
$tok
)
{
$txt
.=
$this
->
decodeCharacterReference
(
)
;
$tok
=
$this
->scanner->
current
(
)
;
}
else
{
$txt
.=
$tok
;
$tok
=
$this
->scanner->
next
(
)
;
}
}
$len
=
strlen
(
$sequence
)
;
$this
->scanner->
consume
(
$len
)
;
$len
+=
$this
->scanner->
whitespace
(
)
;
if
(
'>' !==
$this
->scanner->
current
(
)
)
{
$this
->
parseError
(
'Unclosed RCDATA end tag'
)
;
}
$this
->scanner->
unconsume
(
$len
)
;
$this
->events->
text
(
$txt
)
;
$this
->
setTextMode
(
0
)
;
return
$this
->
endTag
(
)
;
}