# Straighten Quotes

> Turns curly quotes and apostrophes into straight ones

Version: 1.0.0 · By Deck

- Install in Deck: deck://install-plugin?id=straighten-quotes&url=https%3A%2F%2Fgithub.com%2Fyuzeguitarist%2Fdeck-plugins%2Freleases%2Fdownload%2Fplugins%2Fstraighten-quotes-1.0.0.zip
- Download .zip: https://github.com/yuzeguitarist/deck-plugins/releases/download/plugins/straighten-quotes-1.0.0.zip
- View on GitHub: https://github.com/yuzeguitarist/deck-plugins/tree/main/plugins/straighten-quotes

Or install with Terminal: 

```sh
mkdir -p ~/.deck/scripts/straighten-quotes && curl -fsSL https://github.com/yuzeguitarist/deck-plugins/releases/download/plugins/straighten-quotes-1.0.0.zip | tar -xf - -C ~/.deck/scripts/straighten-quotes
```

## Script

```js
// Turns curly quotes and apostrophes into straight ones: single quotes become ' and double quotes become ".
function transform(input) {
  return String(input ?? "").replace(/[\u2018\u2019\u201a\u201b]/g, "'").replace(/[\u201c-\u201f]/g, '"');
}
```

---

- HTML: https://deckclip.app/plugins/straighten-quotes
- 中文: https://deckclip.app/zh-cn/plugins/straighten-quotes.md

© 2026 Yuze Pan
