Restructure HTML in search.mote.