title: angular WARNING: sanitizing HTML stripped some content?
body: <p>Hey I'm trying to display a search bar in a modal by writing the html in the modal body like so:</p>
  
  <pre><code>onClick() {
        const dialogRef = this.modal.alert()
          .size('lg')
          .showClose(true)
          .title('A simple Alert style modal window')
          .body(`
            &lt;div class="card container-fluid col-xs-10"&gt;
            &lt;div class="card-block"&gt;
                &lt;div class="form-group row"&gt;
                    &lt;div class="col-5"&gt;
                        &lt;ng2-completer class="completer-limit"
                                       [(ngModel)]="searchStr"
                                       [datasource]="dataService"
                                       [minSearchLength]="0"
                                       [inputClass]="'form-control'"
                                       [placeholder]="'Enter the class you would like to add'"
                                       [matchClass]="'match'"
                                       [autofocus]="true"
                                       [textSearching]="false"&gt;
                        &lt;/ng2-completer&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;`)
          .open();
      }
  </code></pre>
  
  <p>The html in the .body is trying to reference data in the same .ts file as the onClick function. For reference running this html in the corresponding html document works great (not in a modal). Also adding generic html in the modal works fine (simple text). However when I add this code the search bar is not rendered and in the developer console it says: WARNING: sanitizing HTML stripped some content (see <a href="http://g.co/ng/security#xss" rel="nofollow noreferrer">http://g.co/ng/security#xss</a>). Anyone have any idea what is going on? Sorry if this question is tough since I'm using packages. They are ng2-completer for the search bar and ngx-modialog for the modal. I think the issue may be fundamental and not related to the packages however which is why I'm asking on stackoverflow. Is the problem that the html in the modal body cannot reference the .ts file this onClick function is in since the template is pointing to a seperate html file or should I still be able to reference objects in the .ts file?</p>