<commit_before><?php
namespace CsvMigrations\FieldHandlers\Renderer;

/**
 * TextRenderer
 *
 * Render value as paragraphed text
 */
class TextRenderer extends BaseRenderer
{
    /**
     * Render value
     *
     * @param mixed $value Value to render
     * @param array $options Rendering options
     * @return string Text, HTML or other string result
     */
    public function renderValue($value, array $options = [])
    {
        $result = (string)$value;

        if (empty($result)) {
            return $result;
        }

        // Auto-paragraph
        $result = $this->view->Text->autoParagraph($result);

        return $result;
    }
}<commit_msg>TextRenderer uses BaseRenderer for sanitization (task #3809)<commit_after><?php
namespace CsvMigrations\FieldHandlers\Renderer;

/**
 * TextRenderer
 *
 * Render value as paragraphed text
 */
class TextRenderer extends BaseRenderer
{
    /**
     * Render value
     *
     * @param mixed $value Value to render
     * @param array $options Rendering options
     * @return string Text, HTML or other string result
     */
    public function renderValue($value, array $options = [])
    {
        $result = parent::renderValue($value, $options);

        if (empty($result)) {
            return $result;
        }

        // Auto-paragraph
        $result = $this->view->Text->autoParagraph($result);

        return $result;
    }
}
{'fraction_non_alphanumeric': 0.11483594864479316, 'fraction_numerical': 0.0028530670470756064, 'mean_word_length': 2.472772277227723, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2483587', 'n_tokens_mistral': 396, 'n_tokens_neox': 388, 'n_words': 107}