I had to look up what "2" and ">" referred to.  It might be nice to have those in variables like:

$level = 2;
$attributes = '>';

or maybe just add a comment above