You are here

public function CKEditorFilterTest::testComplex in CKEditor Filter 7

Complex stripping: ensure style elements in nested

File

./ckeditor_filter.test, line 52

Class

CKEditorFilterTest

Code

public function testComplex() {
  $content = '<ul class="list-unstyled" style="padding:100px;float:left;"><li class="hello"><iframe><div style="font-family:comic-sans;text-align:right;">Hi</div></iframe></li></ul>';
  $filtered = _ckeditor_filter_process($content, $this->filter);
  $this
    ->assertIdentical('<ul class="list-unstyled" style="float:left;"><li class="hello"><div style="text-align:right;">Hi</div></li></ul>', $filtered);
}