Trim prototype HTML before converting it to jQuery node