code: @Override
    public Element setText(String script) {
      if (StringUtils.isEmpty(script)) {
        super.setText(script);
      }
      else {
        this.addContent(new Text("\n//"));
  
        // encapsulate script block in CDATA block
        this.addContent(new CDATA("\n"
            + script
            + "\n//"));
  
        this.addContent("\n");
      }
      return this;
    }
docs: {@inheritDoc} Overrides standard setText method to add special xHTML conformant CDATA block
  as workaround for browsers that does not interpret XHTML-encoded script blocks correctly.