| 7 | |
| 8 | So dumping $openTags results in: |
| 9 | `array(7) { [0]=> string(1) "p" [1]=> string(2) "a " [2]=> string(2) "a>" [3]=> string(2) "a>" [4]=> string(2) "a " [5]=> string(2) "p>" [6]=> string(2) "p>" } ` |
| 10 | |
| 11 | we then foreach those and do: |
| 12 | `'</' . $tag . '>'` |
| 13 | |
| 14 | Clearly that's wrong and why we're doubling up the closing angle bracket. |
| 15 | |
| 16 | `[2]=> string(2) "a>"` |
| 17 | |
| 18 | `'</' . 'a>' . '>'` effectively. |
| 19 | |
| 20 | Can't see where in that yet we're messing up the $openTag and it's hard to fathom preg_match stuff. |