Optimization to escape minor script injection on return data

Simple php optimization to ensure that the generated response is not
laden with other media from the server