<commit_before><?php

namespace Oro\Bundle\FormBundle\Tests\Functional\Provider;

use Oro\Bundle\FormBundle\Provider\HtmlTagProvider;
use Oro\Bundle\TestFrameworkBundle\Test\WebTestCase;

class HtmlTagProviderTest extends WebTestCase
{
    /** @var HtmlTagProvider */
    protected $htmlTagProvider;

    /**
     * List of allowed element.
     *
     * @url http://www.tinymce.com/wiki.php/Configuration:valid_elements
     * @var array
     */
    protected $allowedElements = [
        '@[style|class]',
        'table[cellspacing|cellpadding|border|align|width]',
        'thead[align|valign]',
        'tbody[align|valign]',
        'tr[align|valign]',
        'td[align|valign|rowspan|colspan|bgcolor|nowrap|width|height]',
        'th[align|valign|rowspan|colspan|bgcolor|nowrap|width|height]',
        'a[!href|target|title]',
        'dl',
        'dt',
        'div[id]',
        'ul',
        'ol',
        'li',
        'em',
        'strong',
        'b',
        'p',
        'font[color]',
        'i',
        'br',
        'span[id]',
        'img[src|width|height|alt]',
        'h1',
        'h2',
        'h3',
        'h4',
        'h5',
        'h6',
        'hgroup',
        'abbr',
        'address',
        'article',
        'audio',
        'bdo',
        'blockquote',
        'caption',
        'cite',
        'code',
        'col',
        'colgroup',
        'dd',
        'del',
        'details',
        'dfn',
        'figure',
        'figcaption',
        'picture',
        'footer',
        'header',
        'hr',
        'ins',
        'kbd',
        'mark',
        'menu',
        'nav',
        'pre',
        'q',
        'samp',
        'section',
        'small',
        'source[srcset|media]',
        'sub',
        'sup',
        'time',
        'tfoot',
        'var',
        'video',
        'aside',
    ];

    /** @var string */
    protected $allowedTags = '';

    protected function setUp()
    {
        $this->initClient();
        $this->htmlTagProvider = $this->getContainer()->get('oro_form.provider.html_tag_provider');

        $this->allowedTags = '<table></table><thead></thead><tbody></tbody><tr></tr><td></td><th></th><a></a>' .
            '<dl></dl><dt></dt><div></div><ul></ul><ol></ol><li></li><em></em><strong></strong><b></b><p></p>' .
            '<font></font><i></i><br><span></span><img><h1></h1><h2></h2><h3></h3><h4></h4><h5></h5><h6></h6>' .
            '<hgroup></hgroup><abbr></abbr><address></address><article></article><audio></audio><bdo></bdo>' .
            '<blockquote></blockquote><caption></caption><cite></cite><code></code><col></col><colgroup></colgroup>' .
            '<dd></dd><del></del><details></details><dfn></dfn><figure></figure><figcaption></figcaption><picture></picture>' .
            '<footer></footer><header></header><hr></hr><ins></ins><kbd></kbd><mark></mark><menu></menu><nav></nav>' .
            '<pre></pre><q></q><samp></samp><section></section><small></small><source></source><sub></sub><sup></sup>' .
            '<time></time><tfoot></tfoot><var></var><video></video><aside></aside>';<commit_msg>BB-17314: Add base table styles for content blocks and landing pages - add tables for cms pages<commit_after><?php

namespace Oro\Bundle\FormBundle\Tests\Functional\Provider;

use Oro\Bundle\FormBundle\Provider\HtmlTagProvider;
use Oro\Bundle\TestFrameworkBundle\Test\WebTestCase;

class HtmlTagProviderTest extends WebTestCase
{
    /** @var HtmlTagProvider */
    protected $htmlTagProvider;

    /**
     * List of allowed element.
     *
     * @url http://www.tinymce.com/wiki.php/Configuration:valid_elements
     * @var array
     */
    protected $allowedElements = [
        '@[style|class]',
        'table[cellspacing|cellpadding|border|align|width]',
        'thead[align|valign]',
        'tbody[align|valign]',
        'tr[align|valign]',
        'td[align|valign|rowspan|colspan|bgcolor|nowrap|width|height]',
        'th[align|valign|rowspan|colspan|bgcolor|nowrap|width|height]',
        'a[!href|target|title]',
        'dl',
        'dt',
        'div[id]',
        'ul',
        'ol',
        'li',
        'em',
        'strong',
        'b',
        'p',
        'font[color]',
        'i',
        'br',
        'span[id]',
        'img[src|width|height|alt]',
        'h1',
        'h2',
        'h3',
        'h4',
        'h5',
        'h6',
        'hgroup',
        'abbr',
        'address',
        'article',
        'audio',
        'bdo',
        'blockquote',
        'caption',
        'cite',
        'code',
        'col',
        'colgroup',
        'dd',
        'del',
        'details',
        'dfn',
        'figure',
        'figcaption',
        'picture',
        'footer',
        'header',
        'hr',
        'ins',
        'kbd',
        'mark',
        'menu',
        'nav',
        'pre',
        'q',
        'samp',
        'section',
        'small',
        'source[srcset|media]',
        'sub',
        'sup',
        'time',
        'tfoot',
        'var',
        'video',
        'aside',
    ];

    /** @var string */
    protected $allowedTags = '';

    protected function setUp()
    {
        $this->initClient();
        $this->htmlTagProvider = $this->getContainer()->get('oro_form.provider.html_tag_provider');

        $this->allowedTags = '<table></table><thead></thead><tbody></tbody><tr></tr><td></td><th></th><a></a>' .
            '<dl></dl><dt></dt><div></div><ul></ul><ol></ol><li></li><em></em><strong></strong><b></b><p></p>' .
            '<font></font><i></i><br><span></span><img><h1></h1><h2></h2><h3></h3><h4></h4><h5></h5><h6></h6>' .
            '<hgroup></hgroup><abbr></abbr><address></address><article></article><audio></audio><bdo></bdo>' .
            '<blockquote></blockquote><caption></caption><cite></cite><code></code><col></col><colgroup></colgroup>' .
            '<dd></dd><del></del><details></details><dfn></dfn><figure></figure><figcaption></figcaption>' .
            '<picture></picture><footer></footer><header></header><hr></hr><ins></ins><kbd></kbd><mark></mark>' .
            '<menu></menu><nav></nav><pre></pre><q></q><samp></samp><section></section><small></small>' .
            '<source></source><sub></sub><sup></sup><time></time><tfoot></tfoot><var></var><video></video>' .
            '<aside></aside>';
{'fraction_non_alphanumeric': 0.2284543878997952, 'fraction_numerical': 0.006459744761304553, 'mean_word_length': 2.1582089552238806, 'pattern_counts': {'":': 0, '<': 273, '<?xml version=': 0, '>': 281, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3753302', 'n_tokens_mistral': 2100, 'n_tokens_neox': 2094, 'n_words': 243}