Remove placeholders and replace with their content

Hi,

We’ve been using Aspose Words for .NET 9 in the company since a while and are planning to upgrade to Aspose 19. However, there’s been a change of behaviour between these 2 versions with tag placeholders.

In Aspose 19, the tag placeholders are preserved when you save the document, while in Aspose 9 they were discarded (only the content of the placeholder was retained). See below:

<!-- Generated by Aspose.Words for .NET 19.4 -->
<w:sdt>
    <w:sdtPr>
        <w:alias w:val="TEXT:TutorialName" />
        <w:tag w:val="[%TEXT:TutorialName%]" />
        <w:id w:val="-1467197556" />
        <w:placeholder>
            <w:docPart w:val="DefaultPlaceholder_-1854013440" />
        </w:placeholder>
        <w:text />
    </w:sdtPr>
    <w:sdtContent>
        <w:p w:rsidR="00622328" w:rsidRPr="00617BB7" w:rsidP="00617BB7" w14:paraId="75DB8E92" w14:textId="6CC855DE">
            <w:r><w:t>va01 - User Manual</w:t></w:r>
        </w:p>
    </w:sdtContent>
</w:sdt>

vs.

<!-- Generated by Aspose.Words for .NET 9.1.0.0 -->
<w:p w:rsidR="00622328" w:rsidRPr="00585CEE" w:rsidP="00585CEE">
    <w:r><w:t>va01 - User Manual</w:t></w:r>
</w:p>

How can we achieve the same result with Aspose 19?

@gfox

Could you please ZIP and attach your input, output and expected output documents here for our reference? We will then provide you more information about your query.