Fix XSS in section handling

Bug: 65042
Change-Id: Ic52f9889d6f122329d50ccbdd73d5303b084773a