Support HTML entities in attribute values (#1143) * Support HTML entities in attribute values * Remove duplication
diff --git a/components/prism-markup.js b/components/prism-markup.js
index e7a65ba..56b43a1 100644
--- a/components/prism-markup.js
+++ b/components/prism-markup.js
@@ -32,6 +32,9 @@ Prism.languages.markup = {
'entity': /&#?[\da-z]{1,8};/i
};
+Prism.languages.markup['tag'].inside['attr-value'].inside['entity'] =
+ Prism.languages.markup['entity'];
+
// Plugin to make entity title show the real entity, idea by Roman Komarov
Prism.hooks.add('wrap', function(env) {