move inner/outer html to serializer