keep using the same css parser as before

This commit is contained in:
Athou
2024-08-16 19:01:44 +02:00
parent 5b77860189
commit 1b1a3f49c1

View File

@@ -20,7 +20,7 @@ import org.w3c.css.sac.InputSource;
import org.w3c.dom.css.CSSStyleDeclaration;
import com.steadystate.css.parser.CSSOMParser;
import com.steadystate.css.parser.SACParserCSS3;
import com.steadystate.css.parser.SACParserCSS21;
import jakarta.inject.Singleton;
import lombok.RequiredArgsConstructor;
@@ -150,7 +150,7 @@ public class FeedEntryContentCleaningService {
}
private CSSOMParser buildCssParser() {
CSSOMParser parser = new CSSOMParser(new SACParserCSS3());
CSSOMParser parser = new CSSOMParser(new SACParserCSS21());
parser.setErrorHandler(new ErrorHandler() {
@Override