Controls how unknown tags are handled. If set to false, HTMLToWord will throw an HTMLToWordException if it encounters a tag that it does not explicitly know how to handle. If set to true, HTMLToWord will attempt to process the tag. See the IncludeContentsOfUnknownTags for further user-controlable behavior.

<table class="wysiwyg-macro" data-macro-name="unmigrated-wiki-markup" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e3VubWlncmF0ZWQtd2lraS1tYXJrdXB9&amp;locale=en_GB&amp;version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre>
 public boolean AcceptUnknownTags{ get; set; }
</pre></td></tr></table>
<p>Public Property AcceptUnknownTags() As Boolean</p>

  //--- Create the HTMLToWord object
  HTMLToWord h2w = new HTMLToWord();

  //--- Set HTMLToWord to throw an exception if there are any tags
  //--- in the XHTML fragment that are not explicitly handled.
  h2w.InsertProperties.AcceptUnknownTags = false;

  '--- Create the HTMLToWord object
  Dim h2w As New HTMLToWord()

  '--- Set HTMLToWord to throw an exception if there are any tags
  '--- in the XHTML fragment that are not explicitly handled.
  h2w.InsertProperties.AcceptUnknownTags = False