diff --git a/pathauto.inc b/pathauto.inc
index 9f98eec..192eb75 100644
--- a/pathauto.inc
+++ b/pathauto.inc
@@ -182,8 +182,7 @@ function pathauto_cleanstring($string) {
   }
 
   // Remove all HTML tags from the string.
-  $output = strip_tags(decode_entities($string));
-
+  $output = decode_entities(strip_tags($string));
   // Optionally transliterate (by running through the Transliteration module)
   if ($cache['transliterate']) {
     $output = transliteration_get($output);
