X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ffilter%2Fsrc%2FPlugin%2FFilter%2FFilterCaption.php;fp=web%2Fcore%2Fmodules%2Ffilter%2Fsrc%2FPlugin%2FFilter%2FFilterCaption.php;h=03cddb790051ee482e1ac724b372c9fd2163e694;hp=62c83950369b82b037a488ce710baba3cde45206;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/filter/src/Plugin/Filter/FilterCaption.php b/web/core/modules/filter/src/Plugin/Filter/FilterCaption.php index 62c839503..03cddb790 100644 --- a/web/core/modules/filter/src/Plugin/Filter/FilterCaption.php +++ b/web/core/modules/filter/src/Plugin/Filter/FilterCaption.php @@ -64,7 +64,7 @@ class FilterCaption extends FilterBase { '#caption' => $caption, '#classes' => $classes, ]; - $altered_html = drupal_render($filter_caption); + $altered_html = \Drupal::service('renderer')->render($filter_caption); // Load the altered HTML into a new DOMDocument and retrieve the element. $updated_nodes = Html::load($altered_html)->getElementsByTagName('body')