package ru.yandex.oldwebmaster.compatibility;

import org.apache.commons.lang3.StringEscapeUtils;

import ru.yandex.wmtools.common.util.XmlDataWrapper;

/**
 * WARNING! Do not edit this classes. It's a copy from old webmaster.
 *
 * Wraps a given string in a tag with given name.
 *
 * @author ailyin
 */
@Deprecated
public class StringWrapper extends XmlDataWrapper<String> {
    public StringWrapper(String string, String tag) {
        super(string, tag);
    }

    @Override
    protected void doToXml(StringBuilder result) {
        result.append(StringEscapeUtils.escapeXml10(data));
    }
}
