@@ 241-255 (lines=15) @@ | ||
238 | * Whatever else we find there indicates an invalid tag. |
|
239 | */ |
|
240 | switch ($match) { |
|
241 | case '/': |
|
242 | /** |
|
243 | * This is an xhtml-style tag with a closing / at the |
|
244 | * end, like so: <img src="blah"/>. Check if it's followed |
|
245 | * by the closing bracket. If not, then this tag is invalid |
|
246 | */ |
|
247 | if ('/>' == mb_substr($body, $pos, 2)) { |
|
248 | $pos++; |
|
249 | $tagtype = 3; |
|
250 | } else { |
|
251 | $gt = tln_findnxstr($body, $pos, '>'); |
|
252 | $retary = [false, false, false, $lt, $gt]; |
|
253 | ||
254 | return $retary; |
|
255 | } |
|
256 | //intentional fall-through |
|
257 | // no break |
|
258 | case '>': |
|
@@ 346-360 (lines=15) @@ | ||
343 | * anything else means the attribute is invalid. |
|
344 | */ |
|
345 | switch ($match) { |
|
346 | case '/': |
|
347 | /** |
|
348 | * This is an xhtml-style tag with a closing / at the |
|
349 | * end, like so: <img src="blah"/>. Check if it's followed |
|
350 | * by the closing bracket. If not, then this tag is invalid |
|
351 | */ |
|
352 | if ('/>' == mb_substr($body, $pos, 2)) { |
|
353 | $pos++; |
|
354 | $tagtype = 3; |
|
355 | } else { |
|
356 | $gt = tln_findnxstr($body, $pos, '>'); |
|
357 | $retary = [false, false, false, $lt, $gt]; |
|
358 | ||
359 | return $retary; |
|
360 | } |
|
361 | //intentional fall-through |
|
362 | // no break |
|
363 | case '>': |