Commit 6c724f8f authored by alexpott's avatar alexpott

Issue #2654962 by Manuel Garcia, Lendude, wturrell, nlisgo, NickWilde, serg2,...

Issue #2654962 by Manuel Garcia, Lendude, wturrell, nlisgo, NickWilde, serg2, xjm, StuartJNCC, alexpott, cilefen: Views content rewrite text says "You may include HTML" but actually allows only a subset
parent ce031c3f
......@@ -724,7 +724,11 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
'#title' => $this->t('Text'),
'#type' => 'textarea',
'#default_value' => $this->options['alter']['text'],
'#description' => $this->t('The text to display for this field. You may include HTML or <a href=":url">Twig</a>. You may enter data from this view as per the "Replacement patterns" below.', [':url' => CoreUrl::fromUri('http://twig.sensiolabs.org/documentation')->toString()]),
// The tag list will be escaped.
'#description' => $this->t('The text to display for this field. You may enter data from this view as per the "Replacement patterns" below. You may include <a href="@twig_docs">Twig</a> or the following allowed HTML tags: <code>@tags</code>', [
'@twig_docs' => 'https://twig.symfony.com/doc/' . \Twig_Environment::MAJOR_VERSION . '.x',
'@tags' => '<' . implode('> <', Xss::getAdminTagList()) . '>',
]),
'#states' => [
'visible' => [
':input[name="options[alter][alter_text]"]' => ['checked' => TRUE],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment