title: TextEditor component is marked secure='true' but the HTML Sanitizer was not found on the classpath
body: <p>Error message:</p>
  
  <p>TextEditor component is marked secure='true' but the HTML Sanitizer was not found on the classpath. Either add the HTML sanitizer to the classpath per the documentation or mark secure='false' if you would like to use the component without the sanitizer.</p>
  
  <p>This is my pom.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
                          https://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;com.jsf&lt;/groupId&gt;
      &lt;artifactId&gt;showcase&lt;/artifactId&gt;
      &lt;version&gt;1.0.0&lt;/version&gt;
      &lt;packaging&gt;war&lt;/packaging&gt;
  
      &lt;name&gt;showcase&lt;/name&gt;
      &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;prime-repo&lt;/id&gt;
              &lt;name&gt;Prime Repo&lt;/name&gt;
              &lt;url&gt;http://repository.primefaces.org&lt;/url&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.primefaces&lt;/groupId&gt;
              &lt;artifactId&gt;primefaces&lt;/artifactId&gt;
              &lt;version&gt;8.0.RC3&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.jboss.weld.servlet&lt;/groupId&gt;
              &lt;artifactId&gt;weld-servlet-shaded&lt;/artifactId&gt;
              &lt;version&gt;3.1.3.Final&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax&lt;/groupId&gt;
              &lt;artifactId&gt;javaee-web-api&lt;/artifactId&gt;
              &lt;version&gt;8.0.1&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.glassfish&lt;/groupId&gt;
              &lt;artifactId&gt;jakarta.faces&lt;/artifactId&gt;
              &lt;version&gt;2.3.14&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;jakarta.servlet.jsp.jstl&lt;/groupId&gt;
              &lt;artifactId&gt;jakarta.servlet.jsp.jstl-api&lt;/artifactId&gt;
              &lt;version&gt;1.2.7&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
              &lt;artifactId&gt;lombok&lt;/artifactId&gt;
              &lt;version&gt;1.18.10&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
              &lt;artifactId&gt;poi&lt;/artifactId&gt;
              &lt;version&gt;4.1.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
              &lt;artifactId&gt;poi-ooxml&lt;/artifactId&gt;
              &lt;version&gt;4.1.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.lowagie&lt;/groupId&gt;
              &lt;artifactId&gt;itext&lt;/artifactId&gt;
              &lt;version&gt;2.1.7&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.8.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;encoding&gt;UTF-8&lt;/encoding&gt;
                      &lt;source&gt;1.8&lt;/source&gt;
                      &lt;target&gt;1.8&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.2.3&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;filteringDeploymentDescriptors&gt;true&lt;/filteringDeploymentDescriptors&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>textEditor.xhtml:</p>
  
  <pre><code>&lt;html   xmlns="http://www.w3.org/1999/xhtml"
          xmlns:ui="http://java.sun.com/jsf/facelets"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:p="http://primefaces.org/ui"&gt;
  
      &lt;h:head&gt;
          &lt;h:outputStylesheet name="primeicons/primeicons.css" library="primefaces"/&gt;
      &lt;/h:head&gt;
  
      &lt;h:body&gt;
          &lt;h:form&gt;    
              &lt;h3 style="margin-top:0"&gt;Basic&lt;/h3&gt;
              &lt;p:textEditor widgetVar="editor1" value="#{editorView.text}" height="300" style="margin-bottom:10px"/&gt;
  
              &lt;p:commandButton value="Submit" update="display" oncomplete="PF('dlg').show()" icon="pi pi-save" /&gt;
              &lt;p:commandButton value="Clear" type="button" onclick="PF('editor1').clear();" icon="pi pi-times" /&gt;
  
              &lt;h3 class="first"&gt;Custom Toolbar&lt;/h3&gt;
              &lt;p:textEditor widgetVar="editor2" value="#{editorView.text2}" height="300" style="margin-bottom:10px" placeholder="Enter your content"&gt;
                  &lt;f:facet name="toolbar"&gt;
                       &lt;span class="ql-formats"&gt;
                          &lt;button class="ql-bold"&gt;&lt;/button&gt;
                          &lt;button class="ql-italic"&gt;&lt;/button&gt;
                          &lt;button class="ql-underline"&gt;&lt;/button&gt;
                          &lt;button class="ql-strike"&gt;&lt;/button&gt;
                      &lt;/span&gt;
                      &lt;span class="ql-formats"&gt;
                          &lt;select class="ql-font"&gt;&lt;/select&gt;
                          &lt;select class="ql-size"&gt;&lt;/select&gt;
                      &lt;/span&gt;
                  &lt;/f:facet&gt;
              &lt;/p:textEditor&gt;
  
              &lt;p:commandButton value="Submit" update="display" oncomplete="PF('dlg').show()" icon="pi pi-save" /&gt;
              &lt;p:commandButton value="Clear" type="button" onclick="PF('editor2').clear();" icon="pi pi-times" /&gt;
  
              &lt;p:dialog header="Content" widgetVar="dlg" showEffect="fade" hideEffect="fade"&gt;
                  &lt;p:outputPanel id="display"&gt;
                      &lt;h3 style="margin-top:0"&gt;Basic&lt;/h3&gt;
                      &lt;h:outputText value="#{editorView.text}" escape="false" /&gt;
  
                      &lt;h3&gt;Custom&lt;/h3&gt;
                      &lt;h:outputText value="#{editorView.text2}" escape="false" /&gt;
                  &lt;/p:outputPanel&gt;
              &lt;/p:dialog&gt;     
          &lt;/h:form&gt;
      &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>EditorView.java</p>
  
  <pre><code>package com.jsf.showcase.view.input;
  
  import javax.enterprise.context.RequestScoped;
  import javax.inject.Named;
  
  import lombok.Getter;
  import lombok.Setter;
  
  @Getter @Setter
  @Named
  @RequestScoped
  public class EditorView {
      private String text;
      private String text2;
  }
  </code></pre>