Sanitize variables passed to HTML in sec_section_list().

Also clean up the code a bit. Remove alternative syntaxes,
trimming most of the super-long lines.

git-svn-id: http://textpattern.googlecode.com/svn/development/4.x@5271 2fea6a4d-a838-0410-917b-93a53c48e9d2