From 055927a901bf538df11b6a04f30812bdaaa6bad7 Mon Sep 17 00:00:00 2001 From: xtex Date: Wed, 31 Jan 2024 16:13:34 +0800 Subject: [PATCH] Remove style tags in description Some pages' description may include CSS code rendered by [[Extension:TemplateStyles]]. Change-Id: I352ac2338eb5977305308546523ec6c55f7cb599 --- includes/SimpleDescriptionProvider.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/includes/SimpleDescriptionProvider.php b/includes/SimpleDescriptionProvider.php index ea3f904..c94f08b 100644 --- a/includes/SimpleDescriptionProvider.php +++ b/includes/SimpleDescriptionProvider.php @@ -8,7 +8,7 @@ class SimpleDescriptionProvider implements DescriptionProvider { * Extracts description from the HTML representation of a page. * * The algorithm: - * 1. Removes all elements and their contents. + * 1. Removes all