This project is not covered by Drupal’s security advisory policy.
Synopsis
Provides an unrestricted views field (for site architects).
Use Case
Using the Custom Text field to combine values in a view is a powerful technique for building websites. However, it doesn't permit full HTML. Full HTML is available only via templates—too slow and cumbersome for the rapid design experience clients expect. This view field plugin extends the Custom Text field and allows you to display HTML as entered. In addition, global tokens such as [site:name] are processed.
This is intended for client brochure sites where content is entered by devs and marketers. This plugin is not intended for a community site or at least not with content entered by the community. See here and here to find out more about the history of the issues surrounding the concepts of this plugin.
Install
Install as you would normally install a contributed Drupal module. See https://www.drupal.org/node/1897420 for further information.
composer require drupal/vfcu
Use
In a view, add a field and select Custom text unrestricted. Acknowledge that you understand the risks by checking the allow unsafe values checkbox. Note that leaving this unchecked sends the field through the normal filtering done by Custom Text, but still processes global tokens.
Unless you need unrestricted HTML, you should use the core Custom Text views field. The Drupal recommendation for adding unrestricted HTML to your site is to use templates.
Requirements
This module requires no modules outside of Drupal core.
Known problems
None of as yet.
Credits
David McMeans
See also
https://www.drupal.org/project/drupal/issues/3019171
https://www.drupal.org/project/views/issues/853880
https://www.drupal.org/project/drupal/issues/3022643
https://www.drupal.org/project/views/issues/877886
https://www.drupal.org/project/drupal/issues/2654962
Similar projects and how they are different
Inline formatter field - requires Drupal 9.2+
Views addons - requires Drupal 9+
Dependencies
This module requires no modules outside of Drupal core.
Restrictions
No restrictions.
Project information
16 sites report using this module
- Created by david.mcmeans on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
