Filter core sanitize_html
ACFTableFieldPro.core.addFilter( 'core', 'sanitize_html', function( options, param ) {
// DOMPurify Options, @see: https://github.com/cure53/DOMPurify?tab=readme-ov-file#can-i-configure-dompurify
return options;
} );
If you use the filter in an admin script, you have to use the event listener tableFieldProRegisterHooks. See Admin Script.
Parameters
-
param.id- Defaults: empty string
- Options:
Value Description caption_previewIndicates that the filter is used before previewing the table caption. caption_table_to_dataIndicates that the filter is used before writing the caption input value to the table data. render_cell_contentIndicates that the filter is used before a table cell content is displayed in the edit view. cell_content_to_textareaIndicates that the filter is used before a cell content is inserted into the textarea in Simple Text mode. cell_content_from_textareaIndicates that the filter is used before content from the textarea in Simple Text mode is further processed. cell_content_from_editorIndicates that the filter is used when table cell content is saved from the editor. cell_content_from_importIndicates that the filter is used before an imported value is processed. overlay_field_text_valueIndicates that the filter is used before processing the value of an text input from the option modal. overlay_field_textarea_valueIndicates that the filter is used before processing the value of an textarea from the option modal. overlay_field_button_valueIndicates that the filter is used when displaying the value of an button in the option modal. overlay_field_button_textIndicates that the filter is used when displaying the text label of an button in the option modal.