- Issue created by @sonfd
- Merge request !242Add 'unfiltered' SearchApiText filter type to allow rendering HTML exactly as stored in index. β (Open) created by sonfd
In Select Text Format in Views Field for textual content with values from search index β¨ Select Text Format in Views Field for textual content with values from search index Needs work , options were added to allow displaying indexed data containing some HTML, i.e. only some HTML is filtered out of the indexed data.
But one use-case is to store the rendered result, e.g. an entire rendered view mode, in the index so that it can be shown when rendering in hopes of improving the performance of the search page. (The page no longer needs to build each displayed entity's display, it can just pull the already prepared HTML from the index.) In fact, this is the motivation from the Issue Summary of Select Text Format in Views Field for textual content with values from search index β¨ Select Text Format in Views Field for textual content with values from search index Needs work .
With this use in mind, the rendered data in the search index has already been rendered. It's probably not desirable to additionally filter out some HTML from previously rendered and prepared HTML. One example of a problem is that if the rendered HTML contains an SVG, the SVG is stripped by the additional filtering/sanitization.
Add an additional option to "Allow all HTML" so that site builders can display their previously prepared and processed HTML without some tags being stripped.
Active
1.0
General code