Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amazeelabs/raw_html_formatter
https://github.com/amazeelabs/raw_html_formatter
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/amazeelabs/raw_html_formatter
- Owner: AmazeeLabs
- Created: 2015-11-01T13:06:42.000Z (about 9 years ago)
- Default Branch: 8.x-1.x
- Last Pushed: 2021-06-02T09:01:38.000Z (over 3 years ago)
- Last Synced: 2024-11-22T23:32:37.177Z (2 months ago)
- Language: PHP
- Size: 2.93 KB
- Stars: 0
- Watchers: 30
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Raw HTML Formatter
A Drupal 8 module that allows to output text fields as raw HTML. For example, it can be used to insert video embed code.
The formatter is available for `Text (plain)` and `Text (plain, long)` field types.
## Use with caution!
**This formatter makes your website open to XSS attacks!** The [corresponding feature request](https://www.drupal.org/node/1678572) was marked as **won't fix** on drupal.org due to security gaps it can bring.
The only filter the module applies to the user input: the text is [processed with DOMDocument](http://stackoverflow.com/a/10988758/580371). This corrects badly formatted HTML, like unclosed tags.