<?php

/**
 * Validates arbitrary text according to the HTML spec.
 */
class ROE_Vendor_HTMLPurifier_AttrDef_Text extends ROE_Vendor_HTMLPurifier_AttrDef
{

    /**
     * @param string $string
     * @param ROE_Vendor_HTMLPurifier_Config $config
     * @param ROE_Vendor_HTMLPurifier_Context $context
     * @return bool|string
     */
    public function validate($string, $config, $context)
    {
        return $this->parseCDATA($string);
    }
}

// vim: et sw=4 sts=4
