|
@@ 129-132 (lines=4) @@
|
| 126 |
|
) |
| 127 |
|
) |
| 128 |
|
); |
| 129 |
|
if ($maintain_line_numbers) { |
| 130 |
|
$token->rawPosition($current_line, $current_col); |
| 131 |
|
$current_line += $this->substrCount($html, $nl, $cursor, $position_next_lt - $cursor); |
| 132 |
|
} |
| 133 |
|
$array[] = $token; |
| 134 |
|
$cursor = $position_next_lt + 1; |
| 135 |
|
$inside_tag = true; |
|
@@ 212-215 (lines=4) @@
|
| 209 |
|
if ($is_end_tag) { |
| 210 |
|
$type = substr($segment, 1); |
| 211 |
|
$token = new HTMLPurifier_Token_End($type); |
| 212 |
|
if ($maintain_line_numbers) { |
| 213 |
|
$token->rawPosition($current_line, $current_col); |
| 214 |
|
$current_line += $this->substrCount($html, $nl, $cursor, $position_next_gt - $cursor); |
| 215 |
|
} |
| 216 |
|
$array[] = $token; |
| 217 |
|
$inside_tag = false; |
| 218 |
|
$cursor = $position_next_gt + 1; |
|
@@ 229-232 (lines=4) @@
|
| 226 |
|
// XML: $segment[0] !== '_' && $segment[0] !== ':' |
| 227 |
|
if ($e) $e->send(E_NOTICE, 'Lexer: Unescaped lt'); |
| 228 |
|
$token = new HTMLPurifier_Token_Text('<'); |
| 229 |
|
if ($maintain_line_numbers) { |
| 230 |
|
$token->rawPosition($current_line, $current_col); |
| 231 |
|
$current_line += $this->substrCount($html, $nl, $cursor, $position_next_gt - $cursor); |
| 232 |
|
} |
| 233 |
|
$array[] = $token; |
| 234 |
|
$inside_tag = false; |
| 235 |
|
continue; |
|
@@ 257-260 (lines=4) @@
|
| 254 |
|
} else { |
| 255 |
|
$token = new HTMLPurifier_Token_Start($segment); |
| 256 |
|
} |
| 257 |
|
if ($maintain_line_numbers) { |
| 258 |
|
$token->rawPosition($current_line, $current_col); |
| 259 |
|
$current_line += $this->substrCount($html, $nl, $cursor, $position_next_gt - $cursor); |
| 260 |
|
} |
| 261 |
|
$array[] = $token; |
| 262 |
|
$inside_tag = false; |
| 263 |
|
$cursor = $position_next_gt + 1; |
|
@@ 289-292 (lines=4) @@
|
| 286 |
|
} else { |
| 287 |
|
$token = new HTMLPurifier_Token_Start($type, $attr); |
| 288 |
|
} |
| 289 |
|
if ($maintain_line_numbers) { |
| 290 |
|
$token->rawPosition($current_line, $current_col); |
| 291 |
|
$current_line += $this->substrCount($html, $nl, $cursor, $position_next_gt - $cursor); |
| 292 |
|
} |
| 293 |
|
$array[] = $token; |
| 294 |
|
$cursor = $position_next_gt + 1; |
| 295 |
|
$inside_tag = false; |