Skip to content

Commit

Permalink
Fixed a bug with title ID generation and invalid characters.
Browse files Browse the repository at this point in the history
  • Loading branch information
colintucker committed May 22, 2018
1 parent 3a5d6db commit b4bea26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Component.php
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ public function getDefaultStyleID()
*/
public function getTitleID()
{
return str_replace(' ', '', ucwords(preg_replace('/\s+/', ' ', $this->Title)));
return Convert::raw2htmlid(str_replace(' ', '', ucwords(preg_replace('/\s+/', ' ', $this->Title))));
}

/**
Expand Down

0 comments on commit b4bea26

Please sign in to comment.