Is there a module that allows me to define rules for correcting typical punctuation errors when text is entered, i.e. removing space before full stop (period), changing the type of dash used, correcting the ellipsis (...) or other?

Comments

Anonymous’s picture

Mmmm, not sure about a ready made module but I've created a small module to change text strings before a node is saved. Code is as follows (it's D7 but should get you started)...

function your_module_name_node_presave($node) {
  if ($node->type == 'your_node_type') {
    // Insert code to change text faults
  }
}

Hope this helps!

S