Mecha CMS

Add extra functionality to the core engine.


Table of Contents
  1. Before 
  2. After 

Smart punctuation converter.

Download Stable Version Download Development Version

Something looks broken? We accept bounties to fix them faster.

v2.2.1250 Downloads
v2.2.0256 Downloads
v1.0.1367 Downloads

This extension converts some plain ASCII punctuation characters into “smart” punctuation HTML entities:

  • Convert straight quotes (' and ") into ‘curly’ quote HTML entities.
  • Convert dashes (-- and ---) into ‘en-dash’ and ‘em-dash’ HTML entities.
  • Convert three consecutive dots (...) into an ‘ellipsis’ HTML entities.
  • Convert x between numbers into a ‘times’ HTML entities.

This extension will not modify characters within <pre>, <code>, <kbd>, <script>, <style> and <textarea> elements because these elements are commonly used to display text where smart quotes and other “smart punctuation” would not be appropriate, such as in source code or example markup.


He said, "Some text with \'escaped quotes\'... Hey, what's your name?"


He said, “Some text with 'escaped quotes'… Hey, what’s your name?”