Title: [254297] trunk/Websites/webkit.org
Revision
254297
Author
[email protected]
Date
2020-01-09 14:19:20 -0800 (Thu, 09 Jan 2020)

Log Message

Fix redundant anchor tags when generating table of contents
https://bugs.webkit.org/show_bug.cgi?id=206016

Reviewed by Devin Rousso.

* wp-content/plugins/table-of-contents.php:

Modified Paths

Diff

Modified: trunk/Websites/webkit.org/ChangeLog (254296 => 254297)


--- trunk/Websites/webkit.org/ChangeLog	2020-01-09 22:01:46 UTC (rev 254296)
+++ trunk/Websites/webkit.org/ChangeLog	2020-01-09 22:19:20 UTC (rev 254297)
@@ -1,3 +1,12 @@
+2020-01-09  Jon Davis  <[email protected]>
+
+        Fix redundant anchor tags when generating table of contents
+        https://bugs.webkit.org/show_bug.cgi?id=206016
+
+        Reviewed by Devin Rousso.
+
+        * wp-content/plugins/table-of-contents.php:
+
 2019-11-13  Myles C. Maxfield  <[email protected]>
 
         [WebGPU] Update Babylon WebGPU demos to work on ToT

Modified: trunk/Websites/webkit.org/wp-content/plugins/table-of-contents.php (254296 => 254297)


--- trunk/Websites/webkit.org/wp-content/plugins/table-of-contents.php	2020-01-09 22:01:46 UTC (rev 254296)
+++ trunk/Websites/webkit.org/wp-content/plugins/table-of-contents.php	2020-01-09 22:19:20 UTC (rev 254297)
@@ -102,6 +102,7 @@
 
     public static function index( $matches ) {
         list($marked, $level, $heading) = $matches;
+        $heading = strip_tags($heading);
         $anchor = sanitize_title_with_dashes($heading);
         self::$toc[ "$level::$anchor" ] = $heading;
         return sprintf('<h%2$d><a name="%1$s"></a>%3$s</h%2$d>', $anchor, $level, $heading);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to