diff --git a/includes/modules/export/xhtml/class-pb-xhtml11.php b/includes/modules/export/xhtml/class-pb-xhtml11.php
index <HASH>..<HASH> 100644
--- a/includes/modules/export/xhtml/class-pb-xhtml11.php
+++ b/includes/modules/export/xhtml/class-pb-xhtml11.php
@@ -81,6 +81,13 @@ class Xhtml11 extends Export {
 		// Append endnotes to URL?
 		if ( $r['endnotes'] )
 			$this->url .= '&endnotes=true';
+
+		// HtmLawed: id values not allowed in input
+		foreach ( $this->reservedIds as $val ) {
+			$fixme[$val] = 1;
+		}
+		if ( isset( $fixme ) )
+			$GLOBALS['hl_Ids'] = $fixme;
 	}
Prevent reserved ids from showing up in HTML