<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -453,6 +453,14 @@ sub _StripLinkDefinitions {
 	return $text;
 }
 
+sub _StripHTML {
+	# Strip (X)HTML code from string
+	my $text = shift;
+	
+	$text =~ s/&lt;.*?&gt;//g;
+	
+	return $text;
+}
 
 sub _HashHTMLBlocks {
 	my $text = shift;
@@ -1012,7 +1020,7 @@ sub _DoHeaders {
 		
 		if ($label ne &quot;&quot;) {
 			$g_crossrefs{$label} = &quot;#$label&quot;;
-			$g_titles{$label} = $header;
+			$g_titles{$label} = _StripHTML($header);
 			$idString = &quot; id=\&quot;$label\&quot;&quot;;			
 		} else {
 			$idString = &quot;&quot;;
@@ -1033,7 +1041,7 @@ sub _DoHeaders {
 		
 		if ($label ne &quot;&quot;) {
 			$g_crossrefs{$label} = &quot;#$label&quot;;
-			$g_titles{$label} = $header;
+			$g_titles{$label} = _StripHTML($header);
 			$idString = &quot; id=\&quot;$label\&quot;&quot;;			
 		} else {
 			$idString = &quot;&quot;;
@@ -1073,7 +1081,7 @@ sub _DoHeaders {
 			
 			if ($label ne &quot;&quot;) {
 				$g_crossrefs{$label} = &quot;#$label&quot;;
-				$g_titles{$label} = $header;
+				$g_titles{$label} = _StripHTML($header);
 				$idString = &quot; id=\&quot;$label\&quot;&quot;;			
 			} else {
 				$idString = &quot;&quot;;</diff>
      <filename>bin/MultiMarkdown.pl</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3573b36d5ab71f7558631d03b3ba07ef6b22fcf3</id>
    </parent>
  </parents>
  <author>
    <name>Fletcher T. Penney</name>
    <email>fletcher@sheba.gateway.2wire.net</email>
  </author>
  <url>http://github.com/Oblomov/MultiMarkdown/commit/ef6bcb8440bbdfd71936d08a4dc247ef31c3b561</url>
  <id>ef6bcb8440bbdfd71936d08a4dc247ef31c3b561</id>
  <committed-date>2009-07-09T04:46:31-07:00</committed-date>
  <authored-date>2009-07-09T04:46:31-07:00</authored-date>
  <message>Strip HTML from Header crosslink titles</message>
  <tree>986e87d3882bbf495d7cadb77e2f95f35390345d</tree>
  <committer>
    <name>Fletcher T. Penney</name>
    <email>fletcher@sheba.gateway.2wire.net</email>
  </committer>
</commit>
