Text formats

Some notes on text formats:

  • The filters in the text format setting are applied sequentially, with the output of each filter being passed onto the next filter.

  • Text formats should be assigned by role. Anonymous users should only have access to plain text input format, whereas trusted users can have access to Rich text privileges so they can add links, images, and so on.

  • The HTML filter only allows the following tags by default:

<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <img src alt data-entity-type data-entity-uuid> <u> <s> <sup> <sub> <table> <caption> <tbody> <thead> <tfoot> <th> <td> <tr> <p> <drupal-entity data-entity-type data-entity-uuid data-entity-embed-display data-entity-embed-display-settings data-align data-caption data-embed-button>

  • The site administrator can add or remove HTML tags from this list in the Filter settings section from ConfigurationContent authoringText formats and editorsRich text.

A more detailed explanation of Input Formats and Filters can be found here: https://www.drupal.org/docs/user_guide/en/structure-text-format-config.html

Edit on GitHub