Get started with smartquotes CDN
MIT licensed
Library: Automatically converts straight quotes to curly, apostrophes to smart.
Tags:- smart
- quotes
- browser
- node.js
Stable version
Copied!
How to start using smartquotes CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with smartquotes CDN - cdnhub.io</title>
<script src="https://cdn.cdnhub.io/smartquotes/2.3.2/smartquotes.js"></script>
</head>
<body>
<p id="text">This text will have smart quotes applied.</p>
<button onclick="applySmartQuotes()">Apply Smart Quotes</button>
<script>
function applySmartQuotes() {
const textElement = document.getElementById('text');
SmartQuotes.processString(textElement.textContent);
}
</script>
</body>
</html>
Copied!
Copied!
Copied!