Stamp to covert curly quotes to straight quotes

Hello,

I want to convert the curly quotes in the following HTML to straight quotes with a stamp:

HTML code:

<figure>
  <img src="/Users/babaji/Library/Mobile Documents/com~apple~CloudDocs/Tinderbox_images/neuroanatomy/white_matter/superior_logitudinal_fasciculus_1600_1606_2.jpg" width=“3200” height=“3202” alt="Description of the image">
  <figcaption>Figure 1: SLF</figcaption>
</figure>

The stamp “straighten”:

$Text = replace($Text, "“", '"');
$Text = replace($Text, "”", '"');
$Text = replace($Text, "‘", "'");
$Text = replace($Text, "’", "'");

However, this removed all the text on the note and replaced it with the word ‘replace’.

I would appreciate your suggestion to correct the action code for the stamp.

Thank you

It’s $Text.replace(““”, ‘"’)

Great, thank you!