Make preview html safe