public function getSnippetId($name = NULL) { // HTML 4 ID & NAME: [A-Za-z][A-Za-z0-9:_.-]* return 'snippet-' . $this->getUniqueId() . '-' . $name; }