Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

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.

{signature}
{example}{code:csharp|title=C#}

  //--- 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;
{code}
{code:vb.net
|title=vb.net
}

  '--- 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
{code}

{example}
Signature
C#C#
Wiki Markup
{description}
{excerpt}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.{excerpt}
{signature:C#}
 public boolean AcceptUnknownTags{ get; set; }
Signature
{signature}{signature:vb.net
vb.net
}
Public Property AcceptUnknownTags() As Boolean
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle