Add html to custom element Sanitizer and custom element to html normalizer
Open
requested to merge issue/custom_elements-3494426:3494426-create-html-to-CE-converter-and-ce-to-html-normalizer into 3.x
3 unresolved threads
Compare changes
Files
5+ 153
− 8
@@ -7,21 +7,36 @@ use Drupal\Core\Render\BubbleableMetadata;
@@ -47,11 +62,11 @@ class CustomElementNormalizer implements NormalizerInterface {
@@ -76,7 +91,7 @@ class CustomElementNormalizer implements NormalizerInterface {
@@ -89,7 +104,7 @@ class CustomElementNormalizer implements NormalizerInterface {
@@ -99,7 +114,7 @@ class CustomElementNormalizer implements NormalizerInterface {
@@ -138,7 +153,7 @@ class CustomElementNormalizer implements NormalizerInterface {
@@ -160,4 +175,134 @@ class CustomElementNormalizer implements NormalizerInterface {
I don't see why we are changing/extending the purpose of this class. Rendering custom_elements to html markup works via the drupal render system and I don't see why this issue requires us to change it.
We can and maybe should mention this in the class docblock comment here though + clearly document which "format" is supported