Просмотр исходного кода

wiki: Show pronunciation

Unknown why this was stripped. It seems to work okay. (Try looking up
Vodka). Thanks to @rbisewski for finding this.
Will Storey 8 лет назад
Родитель
Сommit
0f69011133
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      wiki.tcl

+ 1 - 3
wiki.tcl

@@ -79,9 +79,7 @@ proc wiki::fetch {term {url {}}} {
 }
 }
 
 
 proc wiki::sanitise {raw} {
 proc wiki::sanitise {raw} {
-	set raw [htmlparse::mapEscapes $raw]
-	# Remove pronunciation stuff
-	set raw [regsub -- {<span.*? class="IPA">.*?</span>} $raw ""]
+	set raw [::htmlparse::mapEscapes $raw]
 	# Remove some help links
 	# Remove some help links
 	set raw [regsub -- {<small class="metadata">.*?</small>} $raw ""]
 	set raw [regsub -- {<small class="metadata">.*?</small>} $raw ""]