Skip to content
Snippets Groups Projects

Applying patch for Views Global Text area field to allow extra HTML tags.

2 unresolved threads

Applying patch for Views Global Text area field to allow extra HTML tags. As video, source and iframe tag is not rendering. Due to which Media embedded video and remote-video not rendering in Views Global Text area field.

Closes #2942327

Merge request reports

Members who can merge are allowed to add commits.
Code Quality is loading
Test summary results are being parsed
Ready to merge by members who can write to the target branch.
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • 111 111 *
    112 112 * @param string $string
    113 113 * The string to apply the filter to.
    114 * @param array $additional_tags
  • added 1 commit

    • 01a507db - Update Xss.php add comment to docblock.

    Compare with previous version

  • added 1 commit

    • a535fcd0 - Update PluginBase.php, add return type of string.

    Compare with previous version

  • andrew farquharson added 174 commits

    added 174 commits

    • a535fcd0...38c850c4 - 169 commits from branch project:11.x
    • a9b0ce88 - Applying patch for Views Global Text area field to allow extra HTML tags. As...
    • cf58df35 - Updating Xss.php file
    • 42c36989 - Issue #2942327 by codebymikey: Stop Views stripping video and iframe elements...
    • f8bc0494 - Update Xss.php add comment to docblock.
    • 05854358 - Update PluginBase.php, add return type of string.

    Compare with previous version

  • 669 671 }
    670 672
    673 /**
    674 * Returns a XSS sanitized text.
    675 *
    676 * It includes support for additional tags which might be potentially used
    677 * in content.
    678 *
    679 * @param string $text
    680 * The text to sanitize.
    681 *
    682 * @return string
    683 * The XSS sanitized text.
    684 */
    685 protected static function sanitizeTextContent(string $text): string {
    686 return Xss::filterAdmin($text, ['video', 'source', 'track', 'iframe']);
    Please register or sign in to reply
    Loading